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
Auntitled.jpg

 채택된 답변

Stephan
Stephan 2018년 12월 30일
편집: Stephan 2018년 12월 30일

0 개 추천

Hi,
the whole area of your figure is a rectangle with area: (3-1)*(0-(-0.5).
If you calculate the integral of your curve in the bounds f(×)=-0.5 (find corresponding x (=1.18(?))) and x=3, you can subtract both values from eachother and you get the green marked area.
Best regards
Stephan

댓글 수: 2

Bristol19
Bristol19 2018년 12월 30일
Briliant Stephan,
It was a massive help! Thank you
Happy new year in adance! :-)
H
Stephan
Stephan 2018년 12월 30일
please make sure to accept useful answers.

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

추가 답변 (1개)

madhan ravi
madhan ravi 2018년 12월 30일
편집: madhan ravi 2018년 12월 30일

0 개 추천

댓글 수: 1

Bristol19
Bristol19 2018년 12월 30일
Hey Madhan,
Thank you but I could not follow the same way they did it. As I only have one function(curve).
Thank you
H

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

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

질문:

2018년 12월 30일

댓글:

2018년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by