matlab双坐标绘制
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/09/02 17:25:00
matlab双坐标绘制
程序代码前面部分不动,想要绘制以i为横坐标,Tjc和COP为双纵坐标的图,不改变程序中所使用的for循环.
Ta=294
Cc=400
Ch=400
Ca=400
Riso=1.085
Rcp=0.38
Rhs=0.2
Qa=0
U=12
for i=1:200
Tc(1)=Ta;
Th(1)=Ta;
Tjc(1)=Ta;
I(1)=U/1.959
Qc(i)=0.050667*I(i)*Tc(i)-0.5*I(i)*I(i)*1.959-0.518*(Th(i)-Tc(i));
Qh(i)=0.050667*I(i)*Th(i)+0.5*I(i)*I(i)*1.959-0.518*(Th(i)-Tc(i));
Qc1(i)=0.050667*I(i)*Tc(i);
Qc2(i)=0.5*I(i)*I(i)*1.959+0.518*(Th(i)-Tc(i));
Tc(i+1)=10*((Tjc(i)-Tc(i))/Rcp-Qc(i))/Cc+Tc(i);
Th(i+1)=10*(Qh(i)-(Th(i)-Ta)/Rhs)/Ch+Th(i);
Tjc(i+1)=10*((Ta-Tjc(i))/Riso+Qa-Qc(i))/Ca+Tjc(i);
I(i+1)=(U-0.050667*(Th(i+1)-Tc(i+1)))/1.959;
W(i)=Qh(i)-Qc(i);
COP(i)=Qc(i)/W(i);
end
程序代码前面部分不动,想要绘制以i为横坐标,Tjc和COP为双纵坐标的图,不改变程序中所使用的for循环.
Ta=294
Cc=400
Ch=400
Ca=400
Riso=1.085
Rcp=0.38
Rhs=0.2
Qa=0
U=12
for i=1:200
Tc(1)=Ta;
Th(1)=Ta;
Tjc(1)=Ta;
I(1)=U/1.959
Qc(i)=0.050667*I(i)*Tc(i)-0.5*I(i)*I(i)*1.959-0.518*(Th(i)-Tc(i));
Qh(i)=0.050667*I(i)*Th(i)+0.5*I(i)*I(i)*1.959-0.518*(Th(i)-Tc(i));
Qc1(i)=0.050667*I(i)*Tc(i);
Qc2(i)=0.5*I(i)*I(i)*1.959+0.518*(Th(i)-Tc(i));
Tc(i+1)=10*((Tjc(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c(i));
Qc1(i)=0.050667*I(i)*Tc(i);
Qc2(i)=0.5*I(i)*I(i)*1.959+0.518*(Th(i)-Tc(i));
Tc(i+1)=10*((Tjc(i)-Tc(i))/Rcp-Qc(i))/Cc+Tc(i);
Th(i+1)=10*(Qh(i)-(Th(i)-Ta)/Rhs)/Ch+Th(i);
Tjc(i+1)=10*((Ta-Tjc(i))/Riso+Qa-Qc(i))/Ca+Tjc(i);
I(i+1)=(U-0.050667*(Th(i+1)-Tc(i+1)))/1.959;
W(i)=Qh(i)-Qc(i);
COP(i)=Qc(i)/W(i);
ii=[ii,i];
end
plotyy(ii,Tjc(2:end),ii,COP)
在Matlab中怎么用subplot在同一位置绘制双Y轴坐标的图
matlab 在一个极坐标中绘制两个函数图像
matlab已知点的坐标,绘制三维图
已知X、Y坐标数值,如何用MATLAB绘制曲线
matlab 绘制由下列极坐标方程表示的曲线 r=aθ
【急】用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?
用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?
已知各点的位置坐标,如何用matlab编程来绘制二维散点图
【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?
matlab绘制两条曲线,如何获得这两个曲线的交点坐标?
matlab中已知立方体的顶点坐标,如何绘制三维图像,
matlab绘制三维曲面