Contents

%%Ejercicio1;Comenzaremos definiendo la funcion factorial de forma recursiva

apartado a

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.