[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Octave for Windows?
From: |
gleblanc |
Subject: |
RE: Octave for Windows? |
Date: |
Wed, 20 Aug 2003 22:42:48 -0500 |
I figured it out!
A variable can not be used in an option or setting that requires a string
as the input.
The entire command has to be constructed.
Example:
Instead of
gset title (myvar)
use
e = num2str(.354)
myvar = ["This is the max value - ", e]
command = sprintf ("gset title \"%s\"", myvar);
eval(command);
This will resolve to
gset title "This is the max value - .354"
Thanks for the help.
Gregory LeBlanc
address@hidden
-----------------------------------------
This email was sent using FREE Catholic Online Webmail.
http://webmail.catholic.org/
-------------------------------------------------------------
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
-------------------------------------------------------------