From help-request at octave dot org Tue May 3 14:54:51 2005 Subject: Re: saving files without header From: fred To: "Hall, Benjamin" CC: "'Keith Goodman'" , help@octave.org Date: Tue, 03 May 2005 21:54:01 +0200 Hall, Benjamin a écrit : > > a = [1:1000]; > b = a.^2; > c = -a; > > dat = [a' b' c']; > fmt_str = repmat('%g ',[1 size(dat,2)]); > fmt_str = [ fmt_str '\n' ]; > > fid = fopen('somefile.txt','wt'); > fprintf( fid, fmt_str, dat ); > fclose(fid); Does not work for me :-( It prints all a values, then b, then c, as previous ex. Any idea ? Thx. -- Fred. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------