Error while reading and displaying an image in R2020a

3 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by