How to load ODE functions (ie. ODE1, ODE2) to call/reference?
显示 更早的评论
I just watched a great video by Cleve Moler using ODE1, ODE2 (I am very new to Matlab). I tried to follow the code and his video (via command window); however, I get the error 'ODE1 not found'. I am not sure how to load this function? Thank you!!
5 个评论
madhan ravi
2018-10-19
upload your code
I suspect that ODE1 and ODE2 are just the functions that Cleve Moler was providing as the first input to the ODE solver, in other words they were probably example function handles defined for that video. But as you did not give us a link to the video, this is just a guess.
CT
2018-10-19
madhan ravi
2018-10-19
ode1 is a function which is defined
CT
2018-10-19
回答(1 个)
Steven Lord
2018-10-19
0 个投票
On that video's page, right above the video transcript, there's a link "Related MATLAB code files can be downloaded from MATLAB Central". Did you download them? The ode1 and ode2 functions are part of that File Exchange submission.
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!