Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
.

Respuesta aceptada

David Barry
David Barry el 21 de Dic. de 2016
function out = myFactorial(in)
out = factorial(in);
end

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by