help-octave
[Top][All Lists]
Advanced

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

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


From: Steve C. Thompson
Subject: Re: How to suppress unneeded output while using "save"
Date: Tue, 6 Dec 2005 06:31:32 -0800
User-agent: Mutt/1.5.9i

On 06 Dec 05 08:12AM, Paul Kienzle wrote:
>>On Tue, Dec 06, 2005 at 12:11:18PM +0100, address@hidden wrote:
>>> How can I suppress this additional output?
>>
>> $ cat data.txt | grep -v "#" > newdata.txt
> 
> Or you can use dlmwrite
Or `fprintf':

  fid = fopen (filename, 'w');
  for i = 1 : n
    fprintf (fid, '%f %f %f \n', a(1), a(2), a(3));
  end
  fclose (fid);

Or there abouts.

Steve



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