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/05/19 16:00:03
matlab新手Conversiontodoublefromsymisnotpossible.symsty=3*0.02*exp(-5*t)+exp(-12*t)-4*exp(-4*t)*sin(3*

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;