Ältere Kommentare anzeigen
Is there a function to find area of triangle,not by using Heron's algorithm.
Akzeptierte Antwort
Weitere Antworten (1)
AYUSH MISHRA
am 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
Kategorien
Mehr zu Computational Geometry 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!