Density measurment using cumulative plots
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zuzana Pániková
el 27 de Feb. de 2022
Comentada: Zuzana Pániková
el 5 de Mzo. de 2022
I have two plots
plot(a,b)
hold on
plot(c,d)
and now i need do:
0 comentarios
Respuesta aceptada
Más respuestas (3)
Zuzana Pániková
el 2 de Mzo. de 2022
1 comentario
Image Analyst
el 2 de Mzo. de 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
el 4 de Mzo. de 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().
Ver también
Categorías
Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!