matlab中如何在某一点连接两条分段曲线
本人菜鸟一枚。程序如下所示,我需要做出T和C1,2,3的关系图像,C3分了两种clc;clearallR=8.314B0=0.52p=0.28D=2.34T=300:62...
本人菜鸟一枚。
程序如下所示,我需要做出T和C1,2,3的关系图像,C3分了两种
clc;clear all
R=8.314
B0=0.52
p=0.28
D=2.34
T=300:627;
C1=30.29-0.01017*T-322000*T.^-2+0.00000947*T.^2;
C2=11.17+0.03778*T+318000*T.^-2;
t=T/628
ct=[474/497.*(1./p-1).*(2.*t.^3+2./3.*t.^9+2./5.*t.^15)].*1/D
C3=C2+R*log(B0+1).*ct
plot(T,C1,T,C2,T,C3)
hold on
T=627:628
T=628:1200;
C1=30.29-0.01017*T-322000*T.^-2+0.00000947*T.^2;
C2=11.17+0.03778*T+318000*T.^-2;
t=T/628
ct=[2.*t.^-5+2/3.*t.^-15+2/5.*t.^-25].*1/D
C3=C2+R*log(B0+1).*ct
plot(T,C1,T,C2,T,C3)
hold off
做出图像如下所示
请问,横坐标如何在628这个点连接两个分段的红色曲线呢?
其实就是628对应的两个纵坐标值之间是一条竖直线段。 展开
程序如下所示,我需要做出T和C1,2,3的关系图像,C3分了两种
clc;clear all
R=8.314
B0=0.52
p=0.28
D=2.34
T=300:627;
C1=30.29-0.01017*T-322000*T.^-2+0.00000947*T.^2;
C2=11.17+0.03778*T+318000*T.^-2;
t=T/628
ct=[474/497.*(1./p-1).*(2.*t.^3+2./3.*t.^9+2./5.*t.^15)].*1/D
C3=C2+R*log(B0+1).*ct
plot(T,C1,T,C2,T,C3)
hold on
T=627:628
T=628:1200;
C1=30.29-0.01017*T-322000*T.^-2+0.00000947*T.^2;
C2=11.17+0.03778*T+318000*T.^-2;
t=T/628
ct=[2.*t.^-5+2/3.*t.^-15+2/5.*t.^-25].*1/D
C3=C2+R*log(B0+1).*ct
plot(T,C1,T,C2,T,C3)
hold off
做出图像如下所示
请问,横坐标如何在628这个点连接两个分段的红色曲线呢?
其实就是628对应的两个纵坐标值之间是一条竖直线段。 展开
展开全部
clc;clear all
R=8.314;
B0=0.52;
p=0.28;
D=2.34;
T1=300:627;
C11=30.29-0.01017*T1-322000*T1.^-2+0.00000947*T1.^2;
C21=11.17+0.03778*T1+318000*T1.^-2;
t=T1/628;
ct=[474/497.*(1./p-1).*(2.*t.^3+2./3.*t.^9+2./5.*t.^15)].*1/D;
C31=C21+R*log(B0+1).*ct;
T2=628:1200;
C12=30.29-0.01017*T2-322000*T2.^-2+0.00000947*T2.^2;
C22=11.17+0.03778*T2+318000*T2.^-2;
t=T2/628;
ct=[2.*t.^-5+2/3.*t.^-15+2/5.*t.^-25].*1/D;
C32=C22+R*log(B0+1).*ct;
T=[T1 T2];
C1=[C11 C12];
C2=[C21 C22];
C3=[C31 C32];
plot(T,C1,T,C2,T,C3);
R=8.314;
B0=0.52;
p=0.28;
D=2.34;
T1=300:627;
C11=30.29-0.01017*T1-322000*T1.^-2+0.00000947*T1.^2;
C21=11.17+0.03778*T1+318000*T1.^-2;
t=T1/628;
ct=[474/497.*(1./p-1).*(2.*t.^3+2./3.*t.^9+2./5.*t.^15)].*1/D;
C31=C21+R*log(B0+1).*ct;
T2=628:1200;
C12=30.29-0.01017*T2-322000*T2.^-2+0.00000947*T2.^2;
C22=11.17+0.03778*T2+318000*T2.^-2;
t=T2/628;
ct=[2.*t.^-5+2/3.*t.^-15+2/5.*t.^-25].*1/D;
C32=C22+R*log(B0+1).*ct;
T=[T1 T2];
C1=[C11 C12];
C2=[C21 C22];
C3=[C31 C32];
plot(T,C1,T,C2,T,C3);
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询