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);

 채택된 답변

Walter Roberson
Walter Roberson 2022년 8월 30일

2 개 추천

I= imread('IMG,jpg')
^
You coded a comma instead of a period. IMG.jpg not IMG,jpg

댓글 수: 4

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);
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 2022년 9월 9일
편집: ogheneochuko oyaide 2022년 9월 9일
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 2022년 9월 9일
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. 🙂

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by