help-octave
[Top][All Lists]
Advanced

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

Re: sprintf in gset commands


From: Kai Habel
Subject: Re: sprintf in gset commands
Date: Fri, 24 Nov 2000 12:41:23 +0100

David DS Barnes schrieb:
> 
> Hi All,
> 
> I have been trying to add data to titles/labels/etc
> by using :
> abu=1.2;
> gset title sprintf('abu : %g',abu)
> but I just get back :
> set title sprintf('abu : %g' , abu)
> ^
> line 0: invalid expression
> so does anyone know a way that works?
> 
> Thanks,
> David

Havn't tried, but

abu=1.2
cmd = sprintf("gset title ŠÜ"abu: %gŠÜ"",abu)
eval(cmd)

should work.

Bye Kai



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