[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using automatic form of...gset xrange [-10:10]
From: |
Robert A. .Macy |
Subject: |
Re: Using automatic form of...gset xrange [-10:10] |
Date: |
Tue, 28 Dec 2004 08:42:52 -0800 |
Dimitri,
Thank you for the reply.
...uh, any idea of the logic behind all these extra steps?
- Robert -
On Mon, 27 Dec 2004 22:56:37 -0700
"Dmitri A. Sergatskov" <address@hidden> wrote:
> 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
-------------------------------------------------------------