Finding area UNDER two curves

I am trying to find the area under two curves that overlap in a graph.
So i only want the area under BOTH graphs that actually over lap with each other, the part shaded in pink.
So far I have only seen functions that are able to solve for the area between these two curves, but is there a way to solve for the area under the two overlapping curves?
Thanks

 Respuesta aceptada

KSSV
KSSV el 29 de Mayo de 2020

0 votos

Lets say you data is (x,y1) and (x,y2) which is of size m*2. Your curve for which you want area uses the minmum value of the two.
y = min([y1 y2]) ;
Nowy you have (x,y) data for which you want area. Use trapz, / area, / polyarea.

2 comentarios

Joyce Ai
Joyce Ai el 29 de Mayo de 2020
THANK YOU SO MUCH! This worked :)
Abdallah
Abdallah el 2 de Ag. de 2022
NICE! thanks =)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 29 de Mayo de 2020

Comentada:

el 2 de Ag. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by