matlab中,这个程序错在哪?clc clear alllamada=0.2;theta=0.7;s=0:0.01:1;c=lamada*s+3/2;f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada)*s+c.^2/(4*theta)-c/2+theta/8+1/8;plot(s,f,'b');程序提醒f函数错了

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 12:09:11
matlab中,这个程序错在哪?clc clear alllamada=0.2;theta=0.7;s=0:0.01:1;c=lamada*s+3/2;f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada)*s+c.^2/(4*theta)-c/2+theta/8+1/8;plot(s,f,'b');程序提醒f函数错了
x)M,ILzc΋3X|E]/|:gɫssRsrrsSm K2RK@,sb[+=C+Cd[ bmc}#4b8#-a֧ao U׆p5Q&iچ9%:i:IG?mRϦnɮ6"}^+ʀzC16wf0XwxٌH'zDe@6yvp);p

matlab中,这个程序错在哪?clc clear alllamada=0.2;theta=0.7;s=0:0.01:1;c=lamada*s+3/2;f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada)*s+c.^2/(4*theta)-c/2+theta/8+1/8;plot(s,f,'b');程序提醒f函数错了
matlab中,这个程序错在哪?
clc
clear all
lamada=0.2;
theta=0.7;
s=0:0.01:1;
c=lamada*s+3/2;
f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada)*s+c.^2/(4*theta)-c/2+theta/8+1/8;
plot(s,f,'b');
程序提醒f函数错了

matlab中,这个程序错在哪?clc clear alllamada=0.2;theta=0.7;s=0:0.01:1;c=lamada*s+3/2;f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada)*s+c.^2/(4*theta)-c/2+theta/8+1/8;plot(s,f,'b');程序提醒f函数错了
f=s.^2*lamada.^2/(4*theta)+(1/2)*(-lamada*c/theta+lamada).*s+c.^2/(4*theta)-c/2+theta/8+1/8;
要.*s