[讨论] 出现??? Undefined function or method '

楼主: laiyoyo (赖嘎嘎)   2014-12-09 23:49:35
一直出现??? 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')
麻烦各位大神帮忙
作者: moandmo726 (Lance)   2014-12-09 23:56:00
我也是一样问题...,你的dsolve也是C/C++ function吗?或著是mexFunction()?
作者: windg (风)   2014-12-13 11:35:00
dsolve是Symbolic Math Toolbox的函式 可以先看看你有没有这个toolbox>>ver>>which -all dsolve

Links booklink

Contact Us: admin [ a t ] ucptt.com