help-octave
[Top][All Lists]
Advanced

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

Re: exporting formatted data to a file


From: James Sherman Jr.
Subject: Re: exporting formatted data to a file
Date: Tue, 5 Feb 2013 17:33:33 -0500

On Tue, Feb 5, 2013 at 5:19 PM, marciobarbalho <address@hidden> wrote:
> Hi Jordi
>
> Could you elaborate a bit on it? I couldn't get it to work.
>
> All I got was 'fid' printed many times on the screen! Ha. What a noob!
>
> Márcio
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/exporting-formatted-data-to-a-file-tp4649483p4649537.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

What fid did you pass to it?  A typical example would look like:

> fid = fopen('myawesomefile.text', 'w');
> fprintf(fid, 'I am awesome.\n');
> fclose(fid);

In a decent program, you should probably check that fid is not -1,
which means that it was unable to open the file.

Hope this helps,

James Sherman


reply via email to

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