[Numpy-discussion] Are there command similar as Matlab find command?
Nathan Bell
wnbell@gmail....
Mon Sep 29 16:45:51 CDT 2008
On Mon, Sep 29, 2008 at 5:32 PM, frank wang <f.yw@hotmail.com> wrote:
> Hi,
>
> I am trying to find a command in numpy or python that perform similar
> function as Matlab find command. It will return the indexes of array that
> satisfy a condition. So far I have not found anything.
>
If you're familiar with MATLAB, look here:
http://www.scipy.org/NumPy_for_Matlab_Users
In the table you'll find the following equivalence:
find(a>0.5) <-> where(a>0.5)
--
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/
More information about the Numpy-discussion
mailing list