matlab 新手 Conversion to double from sym is not possible.syms ty=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6)plot(t,y)怎么画不出来图?

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/20 09:14:58
matlab 新手 Conversion to double from sym is not possible.syms ty=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6)plot(t,y)怎么画不出来图?
x͔n@@eT(I[{<? @l d\ AA*B$+ gGd4eν;G\SY1ƻoMMJz` 7%(+x.gA9 j[EcRȅ+d&.n4oVT~,2S6asptsyAiMW7913`Xa<qI`uLIq(@1LEB%ɂ!Sb4B" ys0A0'W;'[wOUvWGW-Qw7VL~V9eDc%dHI) #$PKOc %sJ&(ф $BX F_Y~1ˆ* hHbFQ<7o M~+?n

matlab 新手 Conversion to double from sym is not possible.syms ty=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6)plot(t,y)怎么画不出来图?
matlab 新手 Conversion to double from sym is not possible.
syms t
y=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6)
plot(t,y)
怎么画不出来图?

matlab 新手 Conversion to double from sym is not possible.syms ty=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6)plot(t,y)怎么画不出来图?
这怎么画图呢,变量又没定义,你干脆用ezplot吧
clear all;clc;
y=@(t)3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*t+pi/6); 
ezplot(y);

或者
clear all;clc;
t=-5.5:0.05:1;
y=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t).*sin(3*t+pi/6); 
plot(t,y);grid on;