how can write an m-file function that takes a single argument(integer),computes the factorial then returns the answer?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Respuesta aceptada
David Barry
el 21 de Dic. de 2016
function out = myFactorial(in)
out = factorial(in);
end
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!