function dump(file, array) % dump(file,array) - dump in tab-separated ascii format fid = fopen(file, 'w'); fprintf(fid, '%f\n', array); fclose(fid);