From help-request at octave dot org Mon Dec 27 23:56:50 2004 Subject: Re: Using automatic form of...gset xrange [-10:10] From: "Dmitri A. Sergatskov" To: "Robert A. .Macy" CC: Octave Help Date: Mon, 27 Dec 2004 22:56:37 -0700 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 -------------------------------------------------------------