MATLAB: Error in loading image

imageimread

Hi,
I've used the syntax :
A=imread('Image1.jpg'); imshow(A)
I get the error:
??? Undefined function or method 'Image' for input arguments of type 'char'.
(I'm working in the same directory of the image file)

Best Answer

Thank you both for suggestions.
I've used 'image' inside my program name. The 'image' displayed in the error was referring to it.
The error has disappeared by renaming the program.
Thank you for help
EK