title: Matlab size of image
body: <p>I am trying to find the size of an image I have loaded into matlab.</p>
  
  <pre><code>image=imread('text.jpg');
  [x,y]=size(image);
  </code></pre>
  
  <p>This return the error:</p>
  
  <blockquote>
    <p>Indexing cannot yield multiple results.</p>
  </blockquote>
  
  <p>Does imread not read the image into a 2d array, which should therefore have two sizes?</p>