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

1 view (last 30 days)
.

Accepted Answer

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

More Answers (0)

Categories

Find more on Environment and Settings 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!