help-octave
[Top][All Lists]
Advanced

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

Re: [Femm] Ocatvefemm examples


From: Robert A. Macy
Subject: Re: [Femm] Ocatvefemm examples
Date: Wed, 07 Jun 2006 07:26:27 -0700

I'm not certain, but I always use double quotes...
>> outfile=fopen("filenamen.txt","a");

and for fprintf to work I think you must supply the
template string...
>> fprintf(outfile,"%d\n",variable);
..this will put the variable on a single line
if the variable is a string of characters...
>> fprintf(outfile,"%s\n",variable);

the format of the single generic save line is...
>> save -ascii "filename" v*;
...all variables, whether strings or numbers starting with
v will be saved, but does not append, it will write over an
existing file.

as far as I know,

>> save -ascii fid

is not allowed at all, except I think it will write every
existing variable to a file named, fid.

              - Robert -

On Wed, 7 Jun 2006 06:10:02 +0100 (BST)
 Senthil Ram <address@hidden> wrote:
> Yeah that i've now used
>    
>   fid=fopen(file, 'a','native');
>   fprintf(fid,variables); 
>    
>   but i still get the error
>    
>   I've also used 
>    
>   save -ascii file, variable
>    
>   still there is error on this too.
>   i've also tried this
>    
>   save - ascii fid, variables;
>   how can this be cleared
> 
> 
> With Warm Regards
>   N.D.Senthil Ram
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #49, Villianur Road, Murungapakkam,Pondicherry 605 004,
> INDIA
> Mobile: 00 91  98941 40915, Telephone: 00 91 413 2353696
> 


reply via email to

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