help-octave
[Top][All Lists]
Advanced

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

Re: plotting a line label from matrix value


From: Teemu Ikonen
Subject: Re: plotting a line label from matrix value
Date: Mon, 17 Jul 2000 15:46:20 +0300 (EET DST)

On Mon, 17 Jul 2000, David DS Barnes wrote:

> I have vectors X, Y, and matrix Z
> and I want to 
> 
>       plot(X,Z(2,:),"<linelabel>")
> 
> where <linelabel> is the value Y(2).

Does this work:

eval(sprintf("plot(X, Z(2,:), ';%d;')", Y(2)));

HTH, 

Teemu



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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]