i am trying to load and image into my matlab work space but keep getting the error below, what could be the problem please?
I= imread('IMG,jpg')
Error using imread>get_full_filename (line 516)
File "IMG,jpg" does not exist.
Error in imread (line 340)
fullname = get_full_filename(filename);

 Réponse acceptée

Walter Roberson
Walter Roberson le 30 Août 2022
I= imread('IMG,jpg')
^
You coded a comma instead of a period. IMG.jpg not IMG,jpg

4 commentaires

ogheneochuko oyaide
ogheneochuko oyaide le 30 Août 2022
see below
same error message
I= imread('IMG.jpg')
Error using imread>get_format_info (line 491)
Unable to determine the file format.
Error in imread (line 354)
fmt_s = get_format_info(fullname);
Walter Roberson
Walter Roberson le 30 Août 2022
Please attach the file for us to test. If the site will not accept the file for some reason, then zip the image and attach the zip.
ogheneochuko oyaide
ogheneochuko oyaide le 9 Sep 2022
Modifié(e) : ogheneochuko oyaide le 9 Sep 2022
Thank yoyu so much for your help. I found the error on the file name.
out of so many trials, i guess i mistakenly changed the name of the file somewhere along the line.
Image Analyst
Image Analyst le 9 Sep 2022
Then please award Walter "reputation points", for pointing that out error in the file name, by clicking the "Accept this answer" link. Thanks in advance. 🙂

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by