help-octave
[Top][All Lists]
Advanced

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

Re: passing a parameter from octave to gnuplot


From: Robert A. Macy
Subject: Re: passing a parameter from octave to gnuplot
Date: Thu, 11 Aug 2005 07:33:09 -0700

This is what I use...

  y1=min(variable);y2=max(variable);
  cmdstr=(sprintf("gset yrange [%f:%f]\n",y1,y2);
  eval(cmdstr);

            - Robert -

On Thu, 11 Aug 2005 08:23:53 -0500
 Assaf Kletter <address@hidden> wrote:
> hi,
> i would like to pass a parameter/variable from octave to
> gnuplot, but i'm 
> getting an error. for example:
> 
> octave:10> le=5
> octave:11> gset xrange[le-10:le];
> octave:12> line 0: undefined variable: le
> 
> i also tried "global le=5", with the same result.
> 
> thanks for the help.



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