|
From: | Laurence Lurio |
Subject: | RE: Octave doubt - Problem to Solve |
Date: | Mon, 11 May 2009 09:39:33 -0500 |
Gaspar, Suppose A=[0 1 2 -3 -2 4] Then W=find(A>0) B=A*0; B(W)=A(W) Then do the same for the parts of A < 0. Larry Laurence Lurio Associate Professor Department of Physics Northern Illinois University Phone: (815) 753 6492 Cell: (815) 260 4900 Email: address@hidden From:
address@hidden
[mailto:address@hidden Hi, I’m a university student in Brazil and I’m
using Octave as a tool for my final project in the University. I
have a simple doubt that follows below: 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. Best Regards, Gaspar Ferreira
|
[Prev in Thread] | Current Thread | [Next in Thread] |