function f = fattoriale( n ) m = 1 ; for i = 1 : n m = m * i ; end f = m ; end