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 CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by