There are many integration methods in MATLAB, just pick one of them.
doc quad
doc quadl
doc integral
I'll use quad as an example. Let's say I want to integrate a sin function, which has a period of 2*pi,
quad(@sin,0,2*pi)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!