Area between two points and a curve
이전 댓글 표시
Hi All,
I want to find the area between a curve and two points. The equation is:
>> syms x
>> x4=1.18:0.0000001:3;
>> y4=-2*exp(-(x4).^2);
>> graph4= plot(x4,y4);
I want the area to the left hand side! points: (1.18,-0.5) and (1.18,0).
Any thoughts?
Thank you
A

채택된 답변
추가 답변 (1개)
madhan ravi
2018년 12월 30일
편집: madhan ravi
2018년 12월 30일
0 개 추천
https://www.mathworks.com/matlabcentral/answers/180829-shade-area-between-graphs#answer_169649 - just simply use trapz() to calculate area
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!