isgray
Returns true if the given image, x, is grayscale.
Syntax
R = isgray(x)
Inputs
- x
 - Name of the image file, 2D or ND non-sparse matrix.
 
Outputs
- R
 - Returns true if x is grayscale and false otherwise.
 
Examples
R = isgray('test.bmp')R = 1Returns true if the given image, x, is grayscale.
R = isgray(x)
R = isgray('test.bmp')R = 1