Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
.

Réponse acceptée

David Barry
David Barry le 21 Déc 2016
function out = myFactorial(in)
out = factorial(in);
end

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by