title: Error using ' Transpose on ND array is not defined?
body: <p>I am getting  error for my below code: <code>temp=reshape(img',irow*icol,1);</code></p>
  
  <pre><code>   Error message:Error using  ' 
     Transpose on ND array is not defined.
  </code></pre>
  
  <p>What is solution for this. I think I have to use permute(A,order) command. But I dont know how to use this command in my code. Do you know any solution?</p>
  
  <pre><code> for i=1:M
  str=strcat(int2str(i),'.jpg');   %concatenates two strings that form the name of the image
  eval('img=imread(str);');
  subplot(ceil(sqrt(M)),ceil(sqrt(M)),i)
  imshow(img)
  if i==3
      title('Training set','fontsize',18)
  end
  drawnow;
  [irow icol]=size(img);    % get the number of rows (N1) and columns (N2)
  temp=reshape(img',irow*icol,1);     %creates a (N1*N2)x1 matrix
  S=[S temp];         %X is a N1*N2xM matrix after finishing the sequence
                      %this is our S
  end
  </code></pre>