%%Ejercicio1;Comenzaremos definiendo la funcion factorial de forma recursiva
function f = factr (n) if n == 0; f = 1; else; f = n * factr (n-1); end end
Error using factr (line 5) Not enough input arguments.
Published with MATLAB® R2015a