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 Comments

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 "

Sign in to comment.

Answers (1)

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

2 Comments

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?

Sign in to comment.

Asked:

on 8 Feb 2014

Commented:

on 10 Jun 2021

Community Treasure Hunt

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

Start Hunting!