help-octave
[Top][All Lists]
Advanced

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

Re: gset label VAR


From: Quentin Spencer
Subject: Re: gset label VAR
Date: Tue, 14 May 2002 13:39:36 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

I think the following should work:

gset(['label ',str_label,' at graph 0.05,0.95 left']);

Another alternative is to use the text() function included in octave-forge (see octave.sf.net).

Hope this helps.

Quentin Spencer



Jan Vermaete wrote:

Following code doesn't work

N = 10
str_label=printf("\"N is:\" %d", N); % no prob
gset label str_label  at graph 0.05,0.95 left ; % ERROR
% strlabel is not expanded, who can i fix this?
gplot 0 % dispay only the label(s)


The fault is that the variable "str_label" is not expanded. Who can i force octave to put the content of the variable there.

Thanks





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