help-octave
[Top][All Lists]
Advanced

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

Re: partial plot


From: Jean-Francois Cardoso
Subject: Re: partial plot
Date: Thu, 18 Mar 2004 16:52:11 +0100



On Mar 18, Pascal A. Dupuis wrote:
 > After some computation I obtain a matrix of values I wish to plot. But
 > some of the values are not reliable, and I can define a logical matrix
 > (matrix of ones and zeros) telling if the corresponding result is
 > valid or not.
 > 
 > I would like to have a plot containing only the valid values. 


plot will do this for you if the invalid entries are NaN (not a number)

Try this example :

octave> figure(1) ;
octave> A = randn(10,2) ;
octave> plot(A) ;
octave> figure(2) ;
octave> A(4,2) = NaN ;
octave> plot(A) ;


Cheers, JF



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