How to find out area of a curve in MATLAB