Density measurment using cumulative plots
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Zuzana Pániková
am 27 Feb. 2022
Kommentiert: Zuzana Pániková
am 5 Mär. 2022
I have two plots
plot(a,b)
hold on
plot(c,d)
and now i need do:
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (3)
Zuzana Pániková
am 2 Mär. 2022
1 Kommentar
Image Analyst
am 2 Mär. 2022
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
am 4 Mär. 2022
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().
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!