MATLAB: What is wrong with the function

functionMATLAB

here is the Question that I want to Answre:
(Write a function called tri_area that returns the area of a triangle with base b and height h, where b and h are input arguments of the function in that order.)
function area = tri_area(b,h)
area = b*h;
end

Best Answer

function area=tri_area(b,h)
area=b*h/2;
end