Midpoint Riemann Sum Approximation

Hello. I'm looking for an example of using the Midpoint Riemann Sum Approximation to integrate a function over a vector. My independent variable is 10K data points on a log scale representing different wave lengths. My dependent variable is Planck's Function.
I appreciate your time and consideration.

回答 (1 件)

Torsten
Torsten 2023 年 4 月 29 日
移動済み: Torsten 2023 年 4 月 29 日

0 投票

Use "trapz".

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

質問済み:

2023 年 4 月 28 日

移動済み:

2023 年 4 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by