ua=0:1:71;
N=length(ua);n=0;T=0;Ft=0;ad=0*ua;area=0*ua;
[size=13.3333px]for i=1:N
k=i;
[size=13.3333px]if ua(i)<=20
T=1146+0*ua(i);
[size=13.3333px]else
T=443.527-0.165465*(n2-4518.25)+0.0000360772*(n2-4518.25).^2-0.00000000361349*(n2-4518.25).^3;
[size=13.3333px]end
n=ua(i)*(im*i0/r)/0.377;
Ft=T*im*i0*Nt/r;
f=0.0076+0.000056*ua(i);
Fw=Cd*A*ua(i).^2/21.15;
D=(Ft-Fw)/G;
ad(i)=1.29/9.8*(D-f);
area(i)=0.01.*ad(i)/3.6;
AREA=area(1:k);
t(i)=sum(AREA);
[size=13.3333px]end
[size=13.3333px]In an assignment A(I) = B, the number of elements in B and I must be the same.
|
|