matlab怎么画系统函数?怎么画系统变量对其导数的图像?>> y = dsolve('D2y+2*0*pi*Dy+pi^2*y=0','y(0)=1,Dy(0)=2','x');>> x = 0:0.1 :10>> plot(x,y)Error using plotConversion to double from sym is not possible.y现在是系统变量,我

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 10:19:28
matlab怎么画系统函数?怎么画系统变量对其导数的图像?>>y=dsolve(''D2y+2*0*pi*Dy+pi^2*y=0'',''y(0)=1,Dy(0)=2'',''x'');>>x=0:0.1:10>

matlab怎么画系统函数?怎么画系统变量对其导数的图像?>> y = dsolve('D2y+2*0*pi*Dy+pi^2*y=0','y(0)=1,Dy(0)=2','x');>> x = 0:0.1 :10>> plot(x,y)Error using plotConversion to double from sym is not possible.y现在是系统变量,我
matlab怎么画系统函数?怎么画系统变量对其导数的图像?
>> y = dsolve('D2y+2*0*pi*Dy+pi^2*y=0','y(0)=1,Dy(0)=2','x');
>> x = 0:0.1 :10
>> plot(x,y)
Error using plot
Conversion to double from sym is not possible.
y现在是系统变量,我该怎么画y的图像?
我还想画y'对y的图像,应该用什么命令?

matlab怎么画系统函数?怎么画系统变量对其导数的图像?>> y = dsolve('D2y+2*0*pi*Dy+pi^2*y=0','y(0)=1,Dy(0)=2','x');>> x = 0:0.1 :10>> plot(x,y)Error using plotConversion to double from sym is not possible.y现在是系统变量,我
ya = dsolve('D2y+2*0*pi*Dy+pi^2*y=0','y(0)=1,Dy(0)=2','x')
x = 0:0.1 :10;
y=subs(ya);
figure(1)
plot(x,y)
y1=subs(diff(ya));
figure(2)
plot(y,y1)