title: matlab cell insertion problem
body: <p>I am trying to convert a coloured image to grayscale, resize it and put it into a cell. I wrote the following code for that. But I am getting an error. What am I doing wrong?
  code:</p>
  
  <pre><code>x=imread(strcat('E:\Documents and Settings\brahadeesh\Desktop\will\101_ObjectCategories\airplanes\',files_a(i).name));
  x=imresize(x,[32 32]);
  x=rgb2gray(x);
  a(i-3)=x;
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>??? Conversion to cell from uint8 is not possible.
  Error in ==&gt; *** at 16
  a(i-3)=x;
  </code></pre>