j=0;
for w=W_takeoff:-50:W_landing
j=j+1;
V(j,1) = sqrt(2*w/rho/S/cl_max);
D(j,1) = 0.5 * rho * V(j) * V(j) * S * cd_max;
T(j,1)=D(j); %for steady level flight condition
F(j,1)=ct*T(j); %fuel consumption
Weight(j,1)=w;
t(j,1)=abs((Weight(j)-10000))/F(j);
R(j,1)=V(j)*t(j);
end
W=Weight;
T=table(V, D, F, W, t)
T =
81×5 table
V D F W t
______ ______ _______ _____ ______
55.133 817.37 0.81737 10000 0
54.995 813.28 0.81328 9950 61.479
54.857 809.19 0.80919 9900 123.58
54.718 805.11 0.80511 9850 186.31
54.579 801.02 0.80102 9800 249.68
: : : : :
43.412 506.77 0.50677 6200 7498.5
43.236 502.68 0.50268 6150 7658.9
43.06 498.59 0.49859 6100 7822
42.883 494.51 0.49451 6050 7987.8
42.706 490.42 0.49042 6000 8156.3
