help-octave
[Top][All Lists]

 From: Alvaro Aguilera Subject: Re: Easy about Matrices Date: Tue, 19 Apr 2005 12:07:15 +0200

Hi,

Imagine this:

x = [1,2,3,4;5,6,7,8]
y = [-0.1,0,7,4;-1,-1,2,7]

y(1,1) = -0.1

as it's negative, I have to plot x(1,1) in one color.

y(1,3) = 7    is positive then I plot x(1,3) in other color.

What I've also tried to do is to divide the plotting window with a line (above it are the positive values, and under the negative ones) and give different a background color to each part, but I think that is a question more for the gnuplot mailling list :)

thanks!
Alvaro.

>> find(ismember(X,Y))
ans =

2
3
4
6
9
10
11

provided that you have the functions from octave-forge.

HTH

PB

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