필터 지우기
필터 지우기

How to calculate area of space in Matalb

조회 수: 2 (최근 30일)
Tran Hoa
Tran Hoa 2018년 10월 10일
댓글: Tran Hoa 2018년 10월 14일
Dear members, I want to calculate area of space created by 4 lines as figure. Could you help me to do that ? Thank you
  댓글 수: 4
Image Analyst
Image Analyst 2018년 10월 10일
Is line #1 the blue curve, or the black top of the axes box?
Tran Hoa
Tran Hoa 2018년 10월 11일
Is the blue curve. Thank

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 10월 11일
Try stacking the numerical row vectors of the curves vertically using a semicolon then use min() to get the lower-most curve:
bottomCurve = min([curve1; curve2; curve3; curve4; curve5; curve6], 1);
Then sum from the left index to the right index, whatever they are.
areaUnderCurve = sum(bottomCurve(index1 : index2))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by