Clear Filters
Clear Filters

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

2 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)

Categories

Find more on Programming 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!