Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab redundancies in a two column vector

  1. Apr 16, 2012 #1
    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.
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted