[Top][All Lists]

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

Re: How to suppress unneeded output while using "save"

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 pretty
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 file
again. 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:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]