How to calculate the area between two functions?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi!!
I'm new in Matlab. If someone could help me I will be grateful.
I am interested in calculating the area between the function and the blue horizontal line (in the figure this area is colored red).
The black vertical lines drawn in paint are the lateral limits of the area (points of intersection of the function with the horizontal blue line)
figure (4);
scatter(Time,dmin); % x axis=Time % y axis= dmin (minimum distance)
grid
hold on
plot([-40,40],[0.5,0.5],'b-','linewidth',2) %blue horizontal line
hold off
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/560643/image.png)
Thanks in advance!
0 Commenti
Risposte (1)
Vedere anche
Categorie
Scopri di più su Polygons in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!