help-octave
[Top][All Lists]
Advanced

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

Re: saving data without the header


From: Ben Abbott
Subject: Re: saving data without the header
Date: Tue, 24 Jan 2012 11:15:34 -0500

On Jan 24, 2012, at 11:04 AM, Jean Dupont wrote:

> 2012/1/24, Ben Abbott <address@hidden>:
>> 
>> On Jan 24, 2012, at 10:50 AM, Jean Dupont wrote:
>> 
>>> 2012/1/23, Jordi GutiƩrrez Hermoso <address@hidden>:
>>>> On 23 January 2012 04:08, Jean Dupont <address@hidden> wrote:
>>>>> When saving data produced with octave like this:
>>>>> save('mydata.dat','y');
>>>>> 
>>>>> the file mydata.dat always starts with a header like this:
>>>>> 
>>>>> # Created by Octave 3.2.4, Fri Jan 20 20:08:08 2012 CET <address@hidden>
>>>>> # name: y
>>>>> # type: matrix
>>>>> # rows: 69
>>>>> # columns: 5
>>>>> 
>>>>> Is there a possibility to suppress this header?
>>>> 
>>>> Use the -ascii option.
>>> 
>>> save('test.dat','y') -ascii
>>> This doesn't help, the header is still displayed
>>> 
>>> Jean
>> 
>> Try
>> 
>>      save test.dat y -ascii
>> 
>> or
>> 
>>      save ("test.dat", "y", "-ascii")
> 
> Both of these do work! I'm a bit puzzled why the syntax
> save('test.dat','y') -ascii
> doesn't do the same thing.
> 
> thanks
> Jean

Think of it like this.

        f (x, y) != f(x) - y

Meaning you were trying to subtract "ascii" from the result returned by save().

Ben




reply via email to

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