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 19:34:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050324 Debian/1.7.6-1

Dmitri A. Sergatskov a écrit :
Dmitri A. Sergatskov wrote:



fid = fopen("1_frequency.tmp","w");
fprintf("%g ",frequency);

Hmmm...
How could you do the same but in rows instead of columns ?

I try

  a = [1:1000];
  b = a.^2;
  c = -a;

  file = fopen("gloups","wt");
  fprintf(file, "%g %g %g\n", a, b, c);
  fclose(file);

but it does not work : I have all a values, then b, then c.

Another solution is a do-loop but it is _very_ slow for long tab.

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]