function test_lsq_print_array(ff, fmt, pre, nx, nf, M, suf)
%Imprime a matriz 

fprintf(ff, '%s', pre);

for i = 1:nx
    for j = 1:nf
        if j > 1
            fprintf(ff, ' ');
        end
        fprintf(ff, fmt, M(i,j)); 
    end
    fprintf(ff, '\n');
end
fprintf(ff, '%s', suf);