help-octave
[Top][All Lists]
Advanced

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

Re: =?iso-8859-1?Q? Re: Re: gset output string??=


From: Ben Harris
Subject: Re: =?iso-8859-1?Q? Re: Re: gset output string??=
Date: Fri, 5 Jul 2002 08:45:34 -0500

You could use sprintf to solve this problem. For example:

eval(sprintf('gset output "%s"','afilename'))

or if you are genenerating a filename with numbers in it, the command could
look like

eval(sprintf('gset output "frame%03d.gif"',frame_number))

Regards,
Ben Harris



                                                                                
                                              
                      "Johan Ekh"                                               
                                              
                      <address@hidden>             To:       "octave help " 
<address@hidden>                       
                                               cc:                              
                                              
                      07/05/2002 07:42         Subject:  =?iso-8859-1?Q? Re: 
Re: gset output string??=                        
                      AM                                                        
                                              
                                                                                
                                              
                                                                                
                                              




No, it did not work.
Tried,

eval(['gset output ' fil]);

and got the following,

gnuplot> set output test1.fig
                    ^
         line 0: expecting filename

Any ideas?

/Johan



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







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