Info
此问题已关闭。 请重新打开它进行编辑或回答。
I did not understand the question give me the code for this this will help me loot
1 次查看(过去 30 天)
显示 更早的评论
write a function called tri_area that return the area of triangle with base b and height h, where b and h are the input argument function in that order.
1 个评论
回答(1 个)
Vishal Gaur
2020-6-26
Hi, Amit Nath, yopu can check try this code:
function area=tri_area(b,h)
area = (b*h)/2;
end
If you face any error check this comment
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!