title: Initializing structure in Matlab
body: <p>I am trying to initialize a structure in MATLAB similar to how C code does </p>
  
  <pre><code>typedef struct{
   float x;
   float y;
  } Data
  
  Data datapts[100];
  </code></pre>
  
  <p>From matlab, I know this is how to create a structure:</p>
  
  <pre><code>Data = structure('x',0,'y',0)
  </code></pre>
  
  <p>but how do you create 100 instances of it?</p>
  
  <p>Or is this not usually done in MATLAB?  Does MATLAB prefer dynamic allocation whenever there is new data to add?</p>
  
  <p>Thanks for all your help..</p>