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

Home » Public Forums » archive » Re: Compare two variables
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: Compare two variables [message #61305 is a reply to message #61301] Fri, 11 July 2008 08:49 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
d.poreh@gmail.com wrote:
> Hi everyone
> I have got a problem and I don�t know how to solve it:
> I have two variables like this:
> A, which col*row=2*4
> B, which col*row=4*100.
> All A�s couples (x,y)�s are somewhere in the 2th and 3th column of
> Result. I want to take this rows (I want to extract that rows in
> result which 2th and 3th columns are settled in the B�s ).for
> example:
> A=[[1,2], [3,4] ,[5,6], [7,8]]
>
> B=[�.[11,22,1,2,],�.. [44,55,3,4]�.. ,[22,99,5,6], �.[77,66,7,8]�]
>
> �..=means there are some other data
> I just want to extract these rows and put them in a new variable
> Any help?
> Cheers

If you only have integers, you may want to re-create the cell index....
either the "real" cell index, or one of your own (like cell 1;2 ==> 12,
or 0102 or...). Then a simple intersect will do the trick

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: number problem
Next Topic: EARN MONEY $2500-10000 PER WEEK

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

Current Time: Sat Oct 11 13:33:38 PDT 2025

Total time taken to generate the page: 0.00193 seconds