[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:

In the table you'll find the following equivalence:
 find(a>0.5) <-> where(a>0.5)

Nathan Bell wnbell@gmail.com

More information about the Numpy-discussion mailing list