Send As SMS

7/18/2006

numerically integrate f(x) in matlab

let's say you've got y = f(x), where x and y are both matlab arrays.

to numerically integrate f(x), just use the command trapz:

>> area_under_the_curve = trapz(x,y);


0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.