MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]ODE45的简单问题 (https://www.labfans.com/bbs/showthread.php?t=6236)

Paulo 2009-01-13 13:09

[求助]ODE45的简单问题
 
现在正在自学,从网上copy了一个code到m-file里面,然后运行的时候,command window告诉我“Input argument "y" is undefined.”

Code在这里“[url]http://coweb.cc.gatech.edu/process/203”:[/url]

function yprime=ex2(t,y)
yprime=[cos(y(2))+sin(t); sin(y(1))-cos(t)];

tspan=[0, 10];
y0=[5.1; 6.7];
[t, y]=ode45('ex2', tspan, y0);
plot(t, y)

谁能告诉我为什变量y没有定义呀?

先谢谢了!

Paulo 2009-01-14 12:30

回复: [求助]ODE45的简单问题
 
或者难道说我安装的时候没有选择ode45的模块?

那么在现有的matlab运行下如何检测模块的安装?

谢谢


所有时间均为北京时间。现在的时间是 06:53

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.