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: Henry F. Mollet
Subject: Re: passing a parameter from octave to gnuplot
Date: Thu, 11 Aug 2005 16:44:02 -0700
User-agent: Microsoft-Entourage/11.1.0.040913

How about 
octave:6> le=5;
octave:7> axis ([le-10,le])
octave:8> 
See help axis for more info.
Henry


on 8/11/05 7:33 AM, Robert A. Macy at address@hidden wrote:

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




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