trying to solve an ode using ode45

1 次查看(过去 30 天)
I tried to solve an ode with the command ode45 and plot the result!!it works fine but it does not show the graph!!!
this is what i wrote
F = @(t,y)(y/t+1 + 5*((t+1)/(1+25*t^2)));
[t,y] = ode45 (F,[0,1],1);
plot(t,y);

采纳的回答

Ankit
Ankit 2022-1-25
you forgot to put bracket
F = @(t,y)(y/(t+1) + 5*((t+1)/(1+25*t^2)));
[t,y] = ode45 (F,[0 1],1);
plot(t,y);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by