matlab中的问题:In an assignment A(I) = B, the number of elements in B and I must be the,程序如下:
答案:3 悬赏:80 手机版
解决时间 2021-02-19 04:12
- 提问者网友:轮囘Li巡影
- 2021-02-19 00:37
matlab中的问题:In an assignment A(I) = B, the number of elements in B and I must be the,程序如下:
最佳答案
- 五星知识达人网友:持酒劝斜阳
- 2021-02-19 01:43
Pb=1e5;P1(1)=Ps;P2(1)=Pb;
Tf=298;Tb=293;T1(1)=Tf;T2(1)=Tb;
x=0;v=0;V1i=5e-5;V2i=2e-3;t=0.0001;c=1;
while(x>=0)
v=v+((P1(c)*A1-P2(c)*A2)/m-g)*t;
x=x+v*t+1/2*((P1(c)*A1-P2(c)*A2)/m-g)*t^2;
V1=V1i+x*A1;V2=V2i-x*A2;
if x [mf_f,mf_b]=maf1(P1,P2,T1,T2,c);
else
break
end
P1(c+1)=P1(c)+t*k*(R*T1(c)*mf_f-P1(c)*v*A1)/V1;
P2(c+1)=P2(c)+t*k*(R*T2(c)*mf_b+P2(c)*v*A2)/V2;
dT1=T1(c)*R*((k-1)*T1(c)*mf_f)/(P1(c)*V1)-(k-1)*T1(c)*v*A1/V1;
T1(c+1)=T1(c)+t*dT1;
dT2=T2(c)*R*((k-1)*T2(c)*mf_b)/(P2(c)*V2)+(k-1)*T2(c)*v*A2/V2;
T2(c+1)=T2(c)+t*dT2;
T(c)=t*c;
c=c+1;
Tf=298;Tb=293;T1(1)=Tf;T2(1)=Tb;
x=0;v=0;V1i=5e-5;V2i=2e-3;t=0.0001;c=1;
while(x>=0)
v=v+((P1(c)*A1-P2(c)*A2)/m-g)*t;
x=x+v*t+1/2*((P1(c)*A1-P2(c)*A2)/m-g)*t^2;
V1=V1i+x*A1;V2=V2i-x*A2;
if x
else
break
end
P1(c+1)=P1(c)+t*k*(R*T1(c)*mf_f-P1(c)*v*A1)/V1;
P2(c+1)=P2(c)+t*k*(R*T2(c)*mf_b+P2(c)*v*A2)/V2;
dT1=T1(c)*R*((k-1)*T1(c)*mf_f)/(P1(c)*V1)-(k-1)*T1(c)*v*A1/V1;
T1(c+1)=T1(c)+t*dT1;
dT2=T2(c)*R*((k-1)*T2(c)*mf_b)/(P2(c)*V2)+(k-1)*T2(c)*v*A2/V2;
T2(c+1)=T2(c)+t*dT2;
T(c)=t*c;
c=c+1;
全部回答
- 1楼网友:天凉才是好个秋
- 2021-02-19 03:40
好难!!!!
- 2楼网友:愁杀梦里人
- 2021-02-19 02:17
我也遇到这个问题了,咋回事啊
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
正方形一边上任一点到这个正方形两条对角线的 |
阴历怎么看 ? |