Midpoint Riemann Sum Approximation
Show older comments
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)
Use "trapz".
1 Comment
Julio
17 minutes ago
x=a+dx/2:dx:b-dx/2;
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!