[討論] 出現??? 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