Finding area UNDER two curves

14 ビュー (過去 30 日間)
Joyce Ai
Joyce Ai 2020 年 5 月 29 日
コメント済み: Abdallah 2022 年 8 月 2 日
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
  1 件のコメント
KSSV
KSSV 2020 年 5 月 29 日
Attach your data.

サインインしてコメントする。

採用された回答

KSSV
KSSV 2020 年 5 月 29 日
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 件のコメント
Joyce Ai
Joyce Ai 2020 年 5 月 29 日
THANK YOU SO MUCH! This worked :)
Abdallah
Abdallah 2022 年 8 月 2 日
NICE! thanks =)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by