Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
.

Akzeptierte Antwort

David Barry
David Barry am 21 Dez. 2016
function out = myFactorial(in)
out = factorial(in);
end

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by