Area Under Curve (or Between Curve)
Show older comments

How to find area under curve, I try trapz, not working.
sample=data(:,2); w=data(:,3); z=13.2 plot(sample, w, sample, z); area(w,z)
how to calculate area of shaded region?
2 Comments
Torsten
on 8 Dec 2015
Why does trapz not work ?
What's the error message ?
Best wishes
Torsten.
Jena Jenna
on 9 Dec 2015
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differentiation 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!