MATLAB Matlab redundancies in a two column vector

Hello
I am new to MATLAB and I am trying to perform the task of removing redundancies from a two column vector.
One column holds the indices, the other column holds the values. I don't know how to remove the redundant values!
Any ideas? I have hear that Unique works, but I have the feeling it is for arrays which are not indexed.
I tried using a loop that checked every element currently in the array before allowing another value to be added, but the loop wound up going on forever. So far, the loop has been running for about 20 minutes.
 

Want to reply to this thread?

"Matlab redundancies in a two column vector" You must log in or register to reply here.

Related Threads for: Matlab redundancies in a two column vector

Replies
0
Views
3K
Replies
0
Views
4K
Replies
0
Views
2K
  • Posted
Replies
0
Views
2K
Replies
0
Views
5K
Replies
0
Views
5K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top