imread - "Unexpected MATLAB operator" error when reading image -


i trying read image in matlab using following command found in matlab docs:

a = imread(d:/img,png) 

but problem matlab can not read path , says : error: unexpected matlab operator.

i tried using, /, //, \ , \ in filepath, none of them worked.

please let me know how working.

you need put ' around filename , file named 'img.png' (a dot not comma)

a = imread('d:/img.png') 

Comments