How to create column cells, where each cell contains matrix
<p>I have a function in Matlab that requires as the input </p>

<blockquote>
  <p>column cells, where each cell contains an SPD matrix</p>
</blockquote>

<p>To be more precise this function requires 3 input arguments, the first two are column cells, where each cell contains an SPD matrix, But I don't know how to define a column cell in Matlab. I have tried this: </p>

<pre><code>TestData(:,:,12) = T;
</code></pre>

<p>TestData is supposed to be my cell column and <code>T</code> is a matrix that should be in this column. for every matrix that I have, I put it in a variable called <code>T</code> and then using above command I add it to a 3D array. So the first matrix is in <code>TestData(:,:,1)</code>, The second one is in <code>TestData(:,:,1)</code> and so on. When I run my function with <code>TestData</code> as the input variable i get this error: </p>

<blockquote>
  <p>Cell contents reference from a non-cell array object.</p>
</blockquote>

<p>So I think I didn't define a cell column right.</p>