help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saving files without header


From: fred
Subject: Re: saving files without header
Date: Tue, 03 May 2005 21:54:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Debian/1.7.6-1

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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]