Michael Hearne wrote:
> Is it possible to use multiple conditionals with the pylab.find() function?
>
> For example, in Matlab, I can do the following:
>
> x = rand(1,10);
> i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9
>
> In Python: (ipython -pylab)
> x = rand(1,10)
>
Michael Hearne wrote:
> Is it possible to use multiple conditionals with the pylab.find() function?
>
> For example, in Matlab, I can do the following:
>
> x = rand(1,10);
> i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9
>
> In Python: (ipython -pylab)
> x = rand(1,10)
>
> No