function [ z ] = gera_x_ex_06_professor( N, M ) z = zeros( N, 1 ); for i = 1:M xi = sqrt( rand(N,1) ); z = z + xi; endfor endfunction