Area of a triangle
Afficher commentaires plus anciens
Is there a function to find area of triangle,not by using Heron's algorithm.
Réponse acceptée
Plus de réponses (1)
AYUSH MISHRA
le 26 Mai 2020
function area=tri_area(b,h,n)
area=0.5*b*h*n;
end
%Here b=base of triangle , h=height of triangle , n=number of triangle
Example
area= tri_area(2,3,5)
area =
15
Catégories
En savoir plus sur Computational Geometry dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!