title: How to store vector coordinates in Matlab
body: <p>what's the best way to store vector coordinates in Matlab? 
  For example, h is the height of the image, w is the width, how can I do this (pseudocode):</p>
  
  <pre><code>vectors = [];
  for i=1:h
      for j=1:w
         vectors += p(i,j);
      end
  end
  </code></pre>
  
  <p>To get the kth p object from vectors, I can use vector(k).</p>
  
  <p>Thank you very much.</p>