Integration of discrete data which have a non-linear relationship

2 ビュー (過去 30 日間)
J.S.
J.S. 2018 年 6 月 11 日
回答済み: Anton Semechko 2018 年 6 月 12 日
In the https://www.mathworks.com/help/matlab/math/integration-of-numeric-data.html documentation page, it is noted that non-linear behavior between the discrete data points being integrated could result in inaccuracy when trapz is used. Is there a better function call to use for such an instance, instead?

採用された回答

Anton Semechko
Anton Semechko 2018 年 6 月 12 日
Numerical integration based on Simpson's rule provides greater accuracy than integration using trapezoidal rule. Here is an implementation of Simpson's rule from Matlab's Central File Exchange: Simpson's rule for numerical integration

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical 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