|
From: | Paul Kienzle |
Subject: | Re: How to suppress unneeded output while using "save" |
Date: | Tue, 6 Dec 2005 08:12:31 -0500 |
On Dec 6, 2005, at 6:47 AM, Stefan van der Walt wrote:
On Tue, Dec 06, 2005 at 12:11:18PM +0100, address@hidden wrote:Dear ladies and gentlemen!I use the command "save" to save a matrix in a data-file. That works prettywell. But octave also writes the following information in this data-file: # Created by Octave 2.1.57, Sun Dec 04 12:37:37 2005 # name: speedsc1 # type: matrix # rows: 30 # columns: 337 How can I suppress this additional output?If you remove those lines, you will not be able to load the fileagain. If you still wish to do so, simply pipe the file through `grep':$ cat data.txt | grep -v "#" > newdata.txt
Or you can use dlmwrite dlmwrite('outfile',A,' ') - Paul ------------------------------------------------------------- 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 -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |