Error "Attempt to execute SCRIPT ode113 as a function" in MTLAB R2014a
显示 更早的评论
Hello everyone,
I've tried to solve an ode problem with ode113 in MATLAB R2014a as follows:
clear all;
tspan = [0 5];
y0 = 0;
[t,y] = ode113(@(t,y) 2*t, tspan, y0);
plot(t,y,'-o')
but there's an error as "Attempt to execute SCRIPT ode113 as a function" and
Error in filename (line 4)
[t,y] = ode113(@(t,y) 2*t, tspan, y0);
I was wondering if somebody could help me about my problem.
Thanks in advance.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!