一直出現??? Undefined function or method 'dsolve' for input arguments of type
'char'
這是我得輸入
m=1;
c=1;
k=29;
t=0:0.01:2*pi;
y=dsolve('D2y+1*Dy+29*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'b')
hold on
m=0.5
y=dsolve('D2y+1*Dy+27*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'g')
hold on
m=1.5
y=dsolve('D2y+1*Dy+28*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'k')
hold on
m=2
y=dsolve('D2y+1*Dy+29*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'r')
hold on
m=2.5
y=dsolve('D2y+1*Dy+29*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'b')
hold on
m=3
y=dsolve('D2y+1*Dy+29*y','y(0)=3,Dy(0)=-1')
y=subs(y)
plot(t,y,'c')
麻煩各位大神幫忙