[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: saving files without header
From: |
Keith Goodman |
Subject: |
Re: saving files without header |
Date: |
Tue, 3 May 2005 11:11:31 -0700 |
fprintf(fid,"%g,",a);
fprintf(fid,"\n");
fprintf(fid,"%g,",b);
fprintf(fid,"\n");
fprintf(fid,"%g,",c);
On 5/3/05, fred <address@hidden> wrote:
> 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
> -------------------------------------------------------------
>
>
-------------------------------------------------------------
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
-------------------------------------------------------------
- saving files without header, peter plessas, 2005/05/03
- Re: saving files without header, Dmitri A. Sergatskov, 2005/05/03
- Re: saving files without header, Dmitri A. Sergatskov, 2005/05/03
- Re: saving files without header SOLVED, peter plessas, 2005/05/03
- Re: saving files without header, fred, 2005/05/03
- Re: saving files without header,
Keith Goodman <=
- Re: saving files without header, fred, 2005/05/03
- Re: saving files without header, Dmitri A. Sergatskov, 2005/05/03
- Re: saving files without header, Gerald Ebberink, 2005/05/04