[Top][All Lists]

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

SV: Saving data in append mode

From: Per-Olof Sturesson
Subject: SV: Saving data in append mode
Date: Sat, 16 Jul 2011 18:06:57 +0200


Thanks for the tip.

The problem I have is that I use Octave to process data exported from a 
commercial software package, as an intermediate "calculation engine" and then 
feeding back the result, hence I need to save the data as structures including 
metadata into matlab format. As I would like to have the Octave script as 
general as possible saving the output structure by structure would be helpful. 
The amount and type of data processed by Octave will differ in applications to 
application (time to time).

I am quite familiar with programming in C, I have used file output in append 
mode before, so I know it can be done (at least in theory for Octave too).

Best Regards


-----Ursprungligt meddelande-----
Från: Martijn [mailto:address@hidden 
Skickat: den 14 juli 2011 23:16
Till: Per-Olof Sturesson
Kopia: Ben Abbott; address@hidden
Ämne: Re: Saving data in append mode

Hi Per-Olof,
Appending works for plain text files if you use the c-style i/o:
f=fopen('myfile.txt', 'a')
fprintf(f, 'pi: %.5f\n', pi)
This appends the line 'pi: 3.14159' to an existing file. C-style I/O is 
powerful, but requires some effort.


On Tue, 2011-07-12 at 21:35 +0200, Per-Olof Sturesson wrote:
> Hello,
> Thanks for the response.
> Are there any plans to implement append mode in 'save' to 
> octave/matlab?
> Br
> 2011/7/12 Ben Abbott <address@hidden>
>         On Jul 12, 2011, at 1:51 PM, Per-Olof Sturesson wrote:
>         > Hello,
>         >
>         > I would like to save data in octave or matlab file format in
>         an existing file and append more data.
>         >
>         > Is this possible?
>         >
>         > Br
>         >
>         > POS
>         Appending is supported by the recent 3.4.x release, for ps and
>         pdf output.
>         I don't think it is supported by earlier versions of Octave.
>         Ben
> _______________________________________________
> Help-octave mailing list
> address@hidden

reply via email to

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