Differential Equations ODE1

22 visualizaciones (últimos 30 días)
Noah Barrow
Noah Barrow el 7 de Mzo. de 2020
Comentada: Ameer Hamza el 8 de Mzo. de 2020
Hey everyone,
I was trying to follow along with Cleve Molar in this video series he did on ODE and I had trouble right off the bat entering the ode1" funtcion in the simple problem he was setting up. I kept getting this error below:
I'm running version 2019b if that makes a difference. Wondering if this funtion has been updated? Not too sure, but any insights would be greatly appreciated. Thanks! :)

Respuestas (2)

Ameer Hamza
Ameer Hamza el 7 de Mzo. de 2020
Editada: Ameer Hamza el 8 de Mzo. de 2020
The function is not present in the current MATLAB versions. There are other solvers that you can use, for example, ode45 or other, as shown here: https://www.mathworks.com/help/matlab/ordinary-differential-equations.html. Most probably, if you will replace ode1 with ode34, it should work without error. However, if you want to use ode1 still, you can download the files from here and place it in MATLAB path: https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-differential-equation-ode-solver-in-matlab-8-0-r2012b
  2 comentarios
Noah Barrow
Noah Barrow el 7 de Mzo. de 2020
Hey Ameer!
Thanks for replying. I just tried the same code with ode34 but it still spit back an error. I'll look into some of the other functions in the ode suite. Thanks!
Ameer Hamza
Ameer Hamza el 8 de Mzo. de 2020
Hi Noah, i accidentally posted the wrong link in my answer before. Please check the edited answer. The second link will point to the website from where you can download ode1.

Iniciar sesión para comentar.


Star Strider
Star Strider el 7 de Mzo. de 2020
Go here: Solving ODEs in MATLAB, 1: Euler, ODE1 It’s a totorial by Prof. Dr. Cleve Moler. It has the same calling syntax as the one you posted.

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by