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/05/13 07:00:10

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