How can I use from ismember

Posted by ahmad hosseini on Stack Overflow See other posts from Stack Overflow or by ahmad hosseini
Published on 2013-10-27T09:15:24Z Indexed on 2013/10/27 9:54 UTC
Read the original article Hit count: 174

Filed under:
|
|

Assuming

A=[32512199.30 5401000.29  347.33  
32512199.69 5401000.45  347.39    
32512199.67 5401001.32  353.58    
32512199.96 5401001.50  346.99    
32512196.71 5401001.69  346.62    ]

and

 B=[32512199.30 5401000.29  347.33  
    32512199.69 5401000.45  347.39     
    32512199.67 5401001.32  347.00     
    32512198.85 5401000.91  347.25     
    32512196.71 5401001.69  346.87     ]

I want using ismember extract the rows that have same X and Y and different Z. X is first column, Y is the second and Z is third. in A and B I want extract from A 32512199.67 5401001.32 353.58 and 32512196.71 5401001.69 346.62 OR from B 32512199.67 5401001.32 347.00 and 32512196.71 5401001.69 346.87 How can I do it?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about matrix