The integral method used in postprocessing Analysis of Curve fitting tool

조회 수: 2 (최근 30일)
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 :)

채택된 답변

Andrew Newell
Andrew Newell 2011년 3월 30일
If you enter
type integrate
you can see the source code. It calls the function quad, which uses adaptive Simpson quadrature.
  댓글 수: 1
Zhenhui
Zhenhui 2011년 3월 30일
Thanks Andrew~ i just began learning Matlab to analyze my experimental data, don't know many of its powerful functions. Your answer is really of great help ;)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jon Cherrie
Jon Cherrie 2011년 3월 30일
One of two techniques is used.
  1. For many of the parametric library models, e.g., exponential, Fourier series, the indefinite integral is computed from the coefficients. This is then evaluated to give the definite integral.
  2. For non-parametric models and custom equations, the quad function (adaptive Simpson quadrature) is used.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by