title: How to save array of structres in .mat file in matlab
body: <p>How to save array of structures in <code>.mat</code> file in Matlab? Is it possible?</p>
  
  <pre><code>p(1).x=0;
  p(1).y=0;
  
  p(2).x=1;
  p(2).y=1;
  
  save('matfilename','-struct','p');
  % ??? Error using ==&gt; save
  % The argument to -STRUCT must be the name of a scalar structure variable.
  </code></pre>