title: How to create single dimensional array in matlab?
body: <p>i want to create a single dimensional array in MATLAB inside for loop, please help with below code:</p>
  
  <pre><code>count = 0;  
  for i=1:10  
  arr = count;  
  count = count+1;    
  end
  </code></pre>
  
  <p>when i execute this small code i got 9 as result for arr.</p>
  
  <p>Instead of this i want to have an array arr with 10 values of count for each iteration of i, please help.....</p>