[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,
>
<snip>
> anglex=40;anglez=60;
<snip>
> 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)];
eval(gstr);
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: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------