title: two dimensional unique values in Matlab
body: <p>I have two vectors, one of them stores the width dimension of a set of images and another one the height of these set of images.</p>
  
  <p>I want to use these values as two dimensional vectors [width height] and store them in a matrix. The first line, for instance, keeps the widths and the second line, the heights.</p>
  
  <p>Is it possible to use the unique() function in matlab to return two dimensional unique values? I mean, the values can repeat in one dimension but the two dimensions cannot be the same as another vector?</p>
  
  <p>How to do that in Matlab? </p>
  
  <p>One example: given the following matrix, each column has a two dimensional vector. I want two dimensional unique vectors. The values can repeat in one dimension but not in both.</p>
  
  <p>What I have:</p>
  
  <pre><code>[1,2,3,1;
   4,5,6,4]
  </code></pre>
  
  <p>I want as output:</p>
  
  <pre><code>[1,2,3;
   4,5,6]
  </code></pre>