Quantcast
Channel: MATLAB Central Newsreader - Calculating surface between two plots
Browsing latest articles
Browse All 2 View Live

Re: Calculating surface between two plots

I think this might be the answer. surface=abs(trapz(y,x)-trapz(b,c))

View Article



Calculating surface between two plots

Hello, how can I calculate the surface between the two plots? For example: x=[0 0 3 4 5 6 6 6 6 6 5 4 3 2 0 0 0 0 0]; y=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]; b=[0 0.048 0.7 1.68 3.31 3.5...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images