help-octave
[Top][All Lists]
Advanced

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

Re: Newbie question: passing string variable to gset


From: Dmitri A. Sergatskov
Subject: Re: Newbie question: passing string variable to gset
Date: Sun, 20 Feb 2005 14:13:25 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041127)


James W. Haefner wrote:




The error message is:

gnuplot> set output fname
                    ^
         line 0: expecting filename

Thanks for any help.

replace
gset output fname;

with

eval(sprinf("gset output %s", fname))

Regards,

Dmitri.
--



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