title: Fill cell array with consecutive numbers in Matlab
body: <p>Given <code>myCellArray{10,3} = [];</code>, I would like to fill in the first column with consecutive numbers (let's say 1 through 10).  I know I could do it like this: </p>
  
  <pre><code>[myCellArray{1:10,1}] = deal(1,2,3,4,5,6,7,8,9,10)
  myCellArray = 
      [ 1]    []    []
      [ 2]    []    []
      [ 3]    []    []
      [ 4]    []    []
      [ 5]    []    []
      [ 6]    []    []
      [ 7]    []    []
      [ 8]    []    []
      [ 9]    []    []
      [10]    []    []
  </code></pre>
  
  <p>However, if my cell array is much larger (say 1,000 rows rather than 10), writing out the comma-separated values obviously becomes tedious:</p>
  
  <p><code>[myCellArray{1:10,1}] = deal(1,2,3,</code> ... <code>,1000)</code></p>
  
  <p>Is there a way to create this comma-separated "list" of numbers automatically?  Something like <code>(1:10)</code>?  I know I could assign the values via loops, but is there an elegant one-line solution or something close to that?</p>