- #1
JCienfuegos
- 8
- 0
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.
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.