[Numpy-discussion] Are there command similar as Matlab find command?
Nathan Bell
wnbell at gmail.com
Mon Sep 29 17:45:51 EDT 2008
On Mon, Sep 29, 2008 at 5:32 PM, frank wang <f.yw at 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 at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/
More information about the NumPy-Discussion
mailing list