Midpoint Riemann Sum Approximation

11 views (last 30 days)
Jordan David
Jordan David on 28 Apr 2023
Moved: Torsten on 29 Apr 2023
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.

Answers (1)

Torsten
Torsten on 29 Apr 2023
Moved: Torsten on 29 Apr 2023
Use "trapz".

Community Treasure Hunt

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

Start Hunting!