Error while reading and displaying an image in R2020a

Error using imread>get_full_filename (line 567)
File "rice.tif" does not exist
can say the solution for this
Note - i have installed image processing toolbox also

Answers (1)

The extension is wrong.
Try this:
I = imread('rice.png');
figure
imshow(I)
That worked for me (R2020a).

Categories

Asked:

on 7 Jun 2020

Answered:

on 7 Jun 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!