[Top][All Lists]

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

Re: Passing variables to gnuplot

From: Peter Kjaer Willendrup
Subject: Re: Passing variables to gnuplot
Date: Fri, 19 Nov 1999 10:33:07 +0100 (CET)

Hi there

On Fri, 19 Nov 1999, Josep Forest wrote:

> Hello everybody,


> anglex=40;anglez=60;


> gset view anglex,anglez;
> endcase;
> But gnuplot returns a message: 'anglex: not defined variable' or
> something similar.
> Does anybody know how can I avoid this, and finally make it work (how
> can I pass variable value to gnuplot?)

I know this is a quite ugly solution, but how about

gstr=['gset view ' num2str(anglex) ' ' num2str(anglez)];

Best regards

Peter Willendrup

Peter Kjær Willendrup, Ba. Sc. in Mathematics & Physics
Martensens Alle 5, 3tv      Office Phone: +45 353 20419
DK-1828 Frederiksberg C       Home Phone: +45  33242416
                            Mobile Phone: +45 2374 2900

email: address@hidden, address@hidden

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]