Error:File:D:\MATLAB\MATLAB7.0\work\Untitled.m Line:23 Column:24 Missing MATLAB operator.求出某函数后(单调增),求起始点和中两点之间的连线,函数和直线做差,取最大值,最后三行拿错了xishu_A=3.9083*10^-3;xishu_B=-5
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 23:57:08
Error:File:D:\MATLAB\MATLAB7.0\work\Untitled.m Line:23 Column:24 Missing MATLAB operator.求出某函数后(单调增),求起始点和中两点之间的连线,函数和直线做差,取最大值,最后三行拿错了xishu_A=3.9083*10^-3;xishu_B=-5
Error:File:D:\MATLAB\MATLAB7.0\work\Untitled.m Line:23 Column:24 Missing MATLAB operator.
求出某函数后(单调增),求起始点和中两点之间的连线,函数和直线做差,取最大值,最后三行拿错了
xishu_A=3.9083*10^-3;
xishu_B=-5.847*10^-7;
Rt=R0*(1+xishu_A*t+xishu_B*t.^2); %计算Rt,t大于0度,C=0
VR=1.25;
V3=(K1/(1+K2)-(1+K1)*Rt./(R0+Rt))*2*VR/(((1+K1)*Rt/(R0+Rt)-K1/(1+K2))*K3-1);
plot(t,V3,'b',[0 t(end)],[V3(1) V3(end)],'r'); %V3与t的关系图
%plot(t,Rt,'b',[0 t(end)],[Rt(1) Rt(end)],'r'); Rt与t的关系图
%axis([0 900 0 450]);
t=0:1:100;
L=((V3(100)-V3(1))/100)t+V3(1);
y=V3-L; %直线方程
[ymax,loc]=max(y);
Error:File:D:\MATLAB\MATLAB7.0\work\Untitled.m Line:23 Column:24 Missing MATLAB operator.求出某函数后(单调增),求起始点和中两点之间的连线,函数和直线做差,取最大值,最后三行拿错了xishu_A=3.9083*10^-3;xishu_B=-5
缺少个乘号?
L=((V3(100)-V3(1))/100) * t+V3(1);