help-octave
[Top][All Lists]
Advanced

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

Re: ascii save without leading '#' comments


From: Akira Nishimura
Subject: Re: ascii save without leading '#' comments
Date: Fri, 16 Feb 2001 00:57:11 +0900

From: flatmax <address@hidden>
Subject: ascii save without leading '#' comments
Date: Fri, 16 Feb 2001 02:17:00 +1100 (EST)
Message-ID: <address@hidden>

>Is is possible to save vectors without in ascii form without the '#'
>comment lines at the beginning of the files ?

Simple form may be following;

fid = fopen('output_file');
fprintf(fid, '%g ', your_vector); or fprintf(fid, '%g\n', your_vector);
fclose(fid);

However, it will work only for real numeric vector. So automatic saving
will needs judgments of data type and number of columns or rows of the 
vector (matrix).

_/_/_/   _/  _/            _/            _/_/        Akira NISHIMURA
 _/     _/  _/            _/             |    Dept. of Information Systems
_/okyo  _/_/niversity of _/nformation _/_/ciences address@hidden
                   http://www.rsch.tuis.ac.jp/~akira



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