comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 2d min
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 2d min [message #74380 is a reply to message #74379] Wed, 12 January 2011 14:45 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<e707ce03-19e9-4ee5-9976-aa4c2d6f3f7a@f35g2000vbl.googlegroups.com>,
Gray <graylikethecolor@gmail.com> wrote:

> I have a 3d array, NxNxM. What I would like is to find the minimum of
> each NxN slice, and note the index of the minimum in the slice. I can
> find my minimum by doing min(min(array,ind1,dim=1),dim=1,ind2), but
> I'm not sure how to turn those two index arrays into the indices that
> I need. Help...?

You could just loop over the M index and process each 2-D slice.
ARRAY_INDICES will get you the index within each slice.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: r_correlate; get "loop limit expression too large" error with /Kendall
Next Topic: Efficient finding of locations where two 'on' pixels are next to one another

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 03:45:14 PDT 2025

Total time taken to generate the page: 1.03830 seconds