表从循环变量

13个视图(30天)
Alina Abdikadyr
Alina Abdikadyr 2023年3月30日
编辑: 马特·J 2023年3月30日
大家好,你能帮助我如何计算表从生成的变量的循环
例如,从第二个循环,表的科勒姆V, D, F, W, t
我的代码是:
清晰的所有;关闭所有
W_takeoff = 10000;
W_landing = 6000;
S = 20;
基于“增大化现实”技术= 5;
cd0 = 0.02;
k = 1 /π/ AR;
RC = 0.51;
clalpha = 2 *π;
阿明= 2;
astall = 12;
ρ= 1;
ct = 0.001;
图(1);;包含(“V”);ylabel (' D ')
图(2);;包含(“V”);ylabel (' D ')
图(3);;包含(“V”);ylabel (“P”)
图(4);;包含(“V”);ylabel (“P”)
图(5);;包含(‘\α’);ylabel (“c_l /重金属镉^ 2》)
我= 0;
α=阿明:0.25:astall
我=我+ 1;
cl(我)α= clalpha * *π/ 180;
V_takeoff (i) =√2 * W_takeoff /ρ/ S / cl (i));
V_landing (i) =√2 * W_landing /ρ/ S / cl (i));
光盘(i) = cd0 + k * cl(我)* cl(我);
D_takeoff (i) = 0.5 *ρ* V_takeoff(我)* V_takeoff cd(我)* *(我);
D_landing (i) = 0.5 *ρ* V_landing(我)* V_landing cd(我)* *(我);
p_takeoff (i) = D_takeoff(我)* V_takeoff(我);
p_landing (i) = D_landing(我)* V_landing(我);
P_takeoff (i) = 20000 + 500 * V_takeoff(我);
T_takeoff (i) = 20000 / V_takeoff(我)+ 500;
P_landing (i) = 20000 + 500 * V_landing(我);
T_landing (i) = 20000 / V_landing(我)+ 500;
cl_cd2 (i) = cl (i) / (cd (i) * cd (i));
ang (i) =α;
结束
图(1);情节(V_takeoff D_takeoff)
持有
情节(V_takeoff T_takeoff)
标题([“起飞”])
图(2);情节(V_landing D_landing)
持有
情节(V_landing T_landing)
标题([“登陆”])
图(3);情节(V_takeoff p_takeoff)
持有
情节(V_takeoff P_takeoff)
标题([“起飞”])
图(4);情节(V_landing p_landing)
持有
情节(V_landing P_landing)
标题([“登陆”])
图(5);情节(ang, cl_cd2);
alpha_max = 3;
cl_max = clalpha * alpha_max *π/ 180;
cd_max = cd0 + k * cl_max * cl_max;
j = 0;
w = W_takeoff: -50: W_landing
j = + 1;
V (j) =√2 * w /ρ/ S / cl_max);
D (j) = 0.5 *ρ* V (j) * (j) * * cd_max;
T (j) = D (j);%的稳定水平飞行条件
F (j) = ct * T (j);%的燃料消耗
重量(j) = w;
t (j) = abs((-10000年体重(j))) / F (j);
R (j) = V (j) * t (j);
结束
[max_delta, idelta] = max (abs (D_takeoff-T_takeoff));
图(6);情节(t, V)
图(7);情节(t、F);
图(8);情节(t, R);

接受的答案

马特·J
马特·J 2023年3月30日
编辑:马特·J 2023年3月30日
j = 0;
w = W_takeoff: -50: W_landing
j = + 1;
V (j, 1 =√(2 * w /ρ/ S / cl_max);
D (j, 1) = 0.5 *ρ* V (j) * (j) * * cd_max;
T (j, 1) = D (j);%的稳定水平飞行条件
F (j, 1) = ct * T (j);%的燃料消耗
重量(j, 1) = w;
t (j, 1) = abs((-10000)重量(j)) / F (j);
R (j, 1) = V (j) * t (j);
结束
W =重量;
T =表(V, D, F, W, T)
T =
81年×表5
VDFWt
________________________________
55.133 817.37 0.81737 10000 0
61.479 54.995 813.28 0.81328 9950
123.58 54.857 809.19 0.80919 9900
186.31 54.718 805.11 0.80511 9850
249.68 54.579 801.02 0.80102 9800
:::::
7498.5 43.412 506.77 0.50677 6200
7658.9 43.236 502.68 0.50268 6150
43.06 498.59 0.49859 6100 7822
7987.8 42.883 494.51 0.49451 6050
8156.3 42.706 490.42 0.49042 6000

更多的答案(0)

标签

s manbetx 845


释放

R2022b

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!