[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
From: |
Dmitri A. Sergatskov |
Subject: |
Re: |
Date: |
Wed, 19 Apr 2006 11:49:32 -0600 |
On 4/19/06, Carine Simon <address@hidden> wrote:
>
>
> Hello,
>
> I've got a problem which I think is rather stupid but I can't solve it so
> here I am: I need to save matrices in files with no header at all in order
> to be able to use it within another software. I have found the variable
> "save_header_format_string" but I've still got the information on number of
> rows and columns etc. Any ideas?
You can always use C-style formatting:
octave:1> a=zeros(3,5)
a =
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
octave:2> fid=fopen("myfile.cvs","w")
fid = 3
octave:3> fprintf(fid,"%f,%f,%f\n", a)
octave:4> fclose(fid)
ans = 0
>
> Cheers,
>
>
> Carine.
Hope that helps.
Dmitri.
--
- [no subject], Carine Simon, 2006/04/19
- Re:, Michael Grossbach, 2006/04/19
- Re:,
Dmitri A. Sergatskov <=
- Re:, Andrey Romanenko, 2006/04/19