title: placing data in structures in matlab?
body: <p>I have a loop which iterates for 97 times and there are two arrrays</p>
  
  <ol>
  <li>frequency[1024]  </li>
  <li>strength[1024]</li>
  </ol>
  
  <p>these arrays change values after each iteration of the loop. so before its value changes i need to put them in a structure.For instance the structure would be something like  </p>
  
  <pre><code>s(1).frame=1        %this will show the iteration no.   
  s(1).str=strength  
  s(1).freq=frequency  
  </code></pre>
  
  <p>now i need 97 such structures say s(1) to s(97) in an array.  </p>
  
  <p>my question is: how can I create an array of structures within my loop. Please help me.</p>