[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sprintf in gset commands
From: |
Andy Jacobson |
Subject: |
Re: sprintf in gset commands |
Date: |
24 Nov 2000 12:27:35 +0100 |
User-agent: |
Gnus/5.0806 (Gnus v5.8.6) Emacs/20.7 |
>>>>> "David" == David DS Barnes <address@hidden> writes:
David> Hi All, I have been trying to add data to titles/labels/etc
David> by using : abu=1.2; gset title sprintf('abu : %g',abu) but
David> I just get back : set title sprintf('abu : %g' , abu) ^
David> line 0: invalid expression so does anyone know a way that
David> works?
David,
Try:
eval(sprintf('gset title Ü"abu : %gÜ"',abu))
The idea is that you create the *whole* command with sprintf,
then "eval" it.
Cheers,
Andy
--
address@hidden
-------------------------------------------------------------
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
-------------------------------------------------------------