Feed on
Posts
Comments

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);


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS