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

12 views (last 30 days)
.

Accepted Answer

David Barry
David Barry on 21 Dec 2016
function out = myFactorial(in)
out = factorial(in);
end

More Answers (0)

Community Treasure Hunt

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

Start Hunting!