Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: find duplicate entries for each row
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Q Zhang

Posts: 42
Registered: 10/8/09
find duplicate entries for each row
Posted: May 5, 2013 1:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear All,

I have a n*2 matrix which is as below and consists of only 1, 2, 3 inside

idx=[
2 2
1 2
3 2
1 2
1 3
3 1
2 2
1 3
2 2
1 2
3 1]
I would like to find for which row the entries are the same, e.g. 2==2 then store the row index and the number 2. Which function can help me to realize this?

Thanks



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.