[EDIT: Sat Jun 11 05:03:32 UTC 2011 – Reformat – MKF]
function wr(vect, nomf)[x y]=size(vect);write=fopen(nomf,'w');for i=1:y fprintf(write,'%d\n',vect(1,i));endfclose(write);end
I use this code hope to see the result in .txt file some kind vertical:
123
but the real result is: 123 What is \n for exactly, I found in the help, it use get a linefeed. Anyone know about this, pls help me!
Best Answer