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/12/20 00:44:50
matlab中,这个程序错在哪?clcclearalllamada=0.2;theta=0.7;s=0:0.01:1;c=lamada*s+3/2;f=s.^2*lamada.^2/(4*theta)
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