Octave doubt - Problem to Solve
Laurence Lurio
llurio at niu.edu
Mon May 11 09:39:33 CDT 2009
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: llurio at niu.edu
From: gaspar.ferreirajr at orange-ftgroup.com
[mailto:gaspar.ferreirajr at orange-ftgroup.com]
Sent: Thursday, May 07, 2009 9:12 AM
To: help at octave.org
Subject: Octave doubt - Problem to Solve
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
*********************************
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed
or falsified.
If you are not the intended addressee of this message, please cancel it
immediately and inform the sender.
********************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090511/495acd26/attachment-0001.html
More information about the Help-octave
mailing list