title: Error using 'imhist' in MATLAB 2014
body: <p>I am trying to use imhist to display the histogram of a uint8 .jpg, however I am getting this error:</p>
  
  <blockquote>
    <p>Error using imhist Expected input number 1, I or X, to be
    two-dimensional.</p>
    
    <p>Error in imhist>parse_inputs (line 278) validateattributes(a,
    {'double','uint8','int8','logical','uint16','int16','single','uint32',
    'int32'}, ...</p>
    
    <p>Error in imhist (line 60) [a, n, isScaled, top, map] =
    parse_inputs(varargin{:});</p>
  </blockquote>
  
  <p>Here is my image information:</p>
  
  <blockquote>
    <p>whos f   Name         Size                   Bytes  Class<br>
    Attributes</p>
    
    <p>f         2988x5312x3            47616768  uint8</p>
  </blockquote>
  
  <p>Do I need to convert my image to another data class? I would appreciate any help on this.</p>
  
  <p>Thanks!</p>