How to remove this error "
3 views (last 30 days)
Show older comments
Hi, i am working on a matlab code having multiple function folders. When i run the script file named 'run_F220experiment' I get the following error:-
Error using textread (line 166) File not found.
Error in run_F220_experiment (line 16) [ImageName, GT] = textread(fullfile(db_dir,DB,file_ground_truth), '%s %d');
How can i proceed now...? kindly help
6 Comments
John D'Errico
on 1 May 2015
I've removed textread.txt, although I would point out that it was named textread.txt. It was not an m-file, but a .txt file. That MAY have been part of the problem.
Answers (3)
Image Analyst
on 1 May 2015
You might try textscan(). textread() has been deprecated. But the real problem is that your filename is not exactly what you think it should be. Here, put this code instead of the call to textread()
fullFileName = fullfile(db_dir, DB, file_ground_truth)
if ~exist(fullFileName, 'file')
errorMessage = sprintf('Error: file does not exist:\n%s\nPlease check the spelling very carefully.', fullFileName);
uiwait(warndlg(errorMessage));
else
data = textscan(....................
end
0 Comments
gaurav gavande
on 30 Mar 2022
Hi, i am working on a matlab code having fingerprint extraction . When i run the script file named 'fingerprintextraction' I get the following error
File "C:\gaurav\my fingerprint.TIFF" does not exist.
Error in imread (line 371)
fullname = get_full_filename(filename);
How can i proceed now...? kindly help
1 Comment
Image Analyst
on 30 Mar 2022
Either put that file in that folder, or change the file name to one that DOES exist.
See Also
Categories
Find more on JSON Format in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!