MATLAB: The integral method used in postprocessing Analysis of Curve fitting tool

Curve Fitting ToolboxintegralMATLAB

Hi, I want to know what is the exact scheme used in integral function in curve fitting tool. I found that in Help that it calls the function int. and int = integrate(fun,x,x0) integrates the cfit object fun at the points specified by the vector x, starting from x0, and returns the result in int. int is a vector the same size as x. x0 is a scalar.
I still dont know which scheme is used to do the integration, like Simpson quadrature or trapezoidal.
Anyone knows that? Thanks in advance 🙂

Best Answer

If you enter
type integrate
you can see the source code. It calls the function quad, which uses adaptive Simpson quadrature.
Related Question