matlab画图问题 错误信息如下 Subscript indices must either be real positive integers or logicals.syms lamda Cp beta ;c1=0.5176;c2=116;c3=0.4;c4=5;c5=21;c6=0.0068;beta=0;lamda=(0:10)';Cp=c1.*(c2.*(1/(lamda+0.08.*beta)-0.035/(beta^3+1))-c3.*be
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/27 13:18:48
matlab画图问题 错误信息如下 Subscript indices must either be real positive integers or logicals.syms lamda Cp beta ;c1=0.5176;c2=116;c3=0.4;c4=5;c5=21;c6=0.0068;beta=0;lamda=(0:10)';Cp=c1.*(c2.*(1/(lamda+0.08.*beta)-0.035/(beta^3+1))-c3.*be
matlab画图问题 错误信息如下 Subscript indices must either be real positive integers or logicals.
syms lamda Cp beta ;
c1=0.5176;c2=116;c3=0.4;c4=5;c5=21;c6=0.0068;
beta=0;
lamda=(0:10)';
Cp=c1.*(c2.*(1/(lamda+0.08.*beta)-0.035/(beta^3+1))-c3.*beta-c4).*exp(-c5(1/(lamda+0.08.*beta)-0.035/(beta^3+1)))+c6.*lamda;
plot(lamda,Cp);
matlab画图问题 错误信息如下 Subscript indices must either be real positive integers or logicals.syms lamda Cp beta ;c1=0.5176;c2=116;c3=0.4;c4=5;c5=21;c6=0.0068;beta=0;lamda=(0:10)';Cp=c1.*(c2.*(1/(lamda+0.08.*beta)-0.035/(beta^3+1))-c3.*be
少了一个*和两个.
syms lamda Cp beta ;
c1=0.5176;c2=116;c3=0.4;c4=5;c5=21;c6=0.0068;
beta=0;
lamda=(0:10)';
Cp=c1.*(c2.*(1./(lamda+0.08.*beta)-0.035/(beta^3+1))-c3.*beta-c4).*exp(-c5*(1./(lamda+0.08.*beta)-0.035/(beta^3+1)))+c6.*lamda;
plot(lamda,Cp);