What is the code to call this function?
古いコメントを表示
The question asks for code to call this function below. What is it?
Please explain in detail the call for this function so that even a layman can understand it.
% Function to compute the area of a triangle.
% The area is one half the base width times the height.
function [area] = tri_area(b, h)
tri_area(b,h) = (1/2) * b * h ;
% area = tri_area(b, h); % Sample call.
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!