What is the problem in this following program? Why my function isn't working?
Show older comments
function [area] = tri_area(b,h)
tri_area(b,h)=(0.5)*(b)*(h)
area = tri_area(b,h)
end

Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!