[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using automatic form of...gset xrange [-10:10]
From: |
Dmitri A. Sergatskov |
Subject: |
Re: Using automatic form of...gset xrange [-10:10] |
Date: |
Mon, 27 Dec 2004 22:56:37 -0700 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041127) |
Robert A. .Macy wrote:
....
If I set,
var1=max(variable);var2=min(variable);
then use...
gset yrange [var2:var1];
the plot doesn't accept the values.
You can do:
octave> cmdstr = sprintf("gset yrange [%f:%f]\n", var2, var1)
octave> eval(cmdstr)
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
-------------------------------------------------------------