MATLAB source mfile code for Trapezoidal method of solving ODEs

Hello, Does anyone have or know the m-file for trapezoidal method of solving ODEs (with simple linear iterations)? Thanks

2 commentaires

I'm guessing you mean a variation of Euler's method?
ther's a function in matlab called ode23t, search about it, its the same " trapezoidal method of solving ODEs "

Connectez-vous pour commenter.

Réponses (1)

Do you mean trapz? Then open the M-file:
edit trapz

2 commentaires

Hi, Thanks. But, I don't mean trapz. That one is for numerical integration. I want the one for solving ODEs (initial value problems).
And do you mean an existing code or should this solve an homework assignment?

Connectez-vous pour commenter.

Catégories

Question posée :

le 8 Fév 2014

Commenté :

le 10 Juin 2021

Community Treasure Hunt

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

Start Hunting!

Translated by