Octave doubt - Problem to Solve
Søren Hauberg
soren at hauberg.org
Thu May 7 12:56:46 CDT 2009
tor, 07 05 2009 kl. 10:11 -0400, skrev
gaspar.ferreirajr at orange-ftgroup.com:
> I Have a vector of 3 components and I need a function that extract
> just the Positive elements an put them in other vector/matrix. The
> same way I need to extract just the negative elements and put them in
> other vector/matrix.
You should be able to do something like
positive = vector (vector > 0);
negative = vector (vector < 0);
where 'vector' is the name of your data vector.
Søren
More information about the Help-octave
mailing list