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

Home » Public Forums » archive » compare 2-d array with vector
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
compare 2-d array with vector [message #81550] Mon, 24 September 2012 00:32 Go to previous message
Danxia is currently offline  Danxia
Messages: 10
Registered: September 2012
Junior Member
Hi all, I'm having problem when comparing a 2-d array with a given vector. For example, if giving a 2-d array
a=[[1,1,1],
[2,2,2],
[3,3,3],
[4,4,4]]
and a vector b=[1,2],
how can I get all the subscripts of array a that's equal to any element in vector b, which in this example is [0,1,2,3,4,5]. Please let me know if I failed to make this clear. Looking forward to any reply. Thank you very much!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: interpolation of two different model
Next Topic: Re: IDL Astronomy Library: Some procedures doesn't work?

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

Current Time: Wed Oct 08 17:35:33 PDT 2025

Total time taken to generate the page: 0.00444 seconds