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/09/11 17:47:58
![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](/uploads/image/z/15075575-71-5.jpg?t=matlab%E7%94%BB%E5%9B%BE%E9%97%AE%E9%A2%98+%E9%94%99%E8%AF%AF%E4%BF%A1%E6%81%AF%E5%A6%82%E4%B8%8B+Subscript+indices+must+either+be+real+positive+integers+or+logicals.syms+lamda+Cp+beta+%3Bc1%3D0.5176%3Bc2%3D116%3Bc3%3D0.4%3Bc4%3D5%3Bc5%3D21%3Bc6%3D0.0068%3Bbeta%3D0%3Blamda%3D%280%3A10%29%27%3BCp%3Dc1.%2A%28c2.%2A%281%2F%28lamda%2B0.08.%2Abeta%29-0.035%2F%28beta%5E3%2B1%29%29-c3.%2Abe)
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);