What is the problem in this following program? Why my function isn't working?

 Accepted Answer

Define it like this
function [area] = tri_area(b,h)
area = (0.5)*(b)*(h);
end

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!