Density measurment using cumulative plots
조회 수: 1 (최근 30일)
이전 댓글 표시
I have two plots
plot(a,b)
hold on
plot(c,d)
and now i need do:
댓글 수: 0
채택된 답변
추가 답변 (3개)
Zuzana Pániková
2022년 3월 2일
댓글 수: 1
Image Analyst
2022년 3월 2일
I don't know. What are the two mat files and the xlsx file in the zip file? Which is yRed, yBlue, and the x values?
Image Analyst
2022년 3월 4일
One way is to simply sum the curves and subtract them.
area = abs(sum(d) - sum(b));
That assumes there are no negative values, the curves don't cross, and treats the values like a bar chart (bars with flat tops). If you want to treat them like quadilaterals (like bars but slanted tops), you can use trapz().
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!