Area between two points and a curve
Ältere Kommentare anzeigen
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

Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 30 Dez. 2018
Bearbeitet: madhan ravi
am 30 Dez. 2018
0 Stimmen
https://www.mathworks.com/matlabcentral/answers/180829-shade-area-between-graphs#answer_169649 - just simply use trapz() to calculate area
1 Kommentar
Bristol19
am 30 Dez. 2018
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!