フィルターのクリア

how can write an m-file function that takes a single argument(i​nteger),co​mputes the factorial then returns the answer?

2 ビュー (過去 30 日間)
.

採用された回答

David Barry
David Barry 2016 年 12 月 21 日
function out = myFactorial(in)
out = factorial(in);
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by