How to remove this error "

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 件のコメント

Adam
Adam 2015 年 5 月 1 日
I'm not really sure what is unclear about that message or what we could possibly do to assist with it.
The file you are telling it to open does not exist. Either you put the filename together incorrectly or the file simply isn't there.
harpreet
harpreet 2015 年 5 月 1 日
I am confused because both of the possibilities (that u told) are not there. Spellings are correct and even file textread is also present in my code. I am attaching "textread" file with this comment for your reference. Please have a look.
Guillaume
Guillaume 2015 年 5 月 1 日
編集済み: Guillaume 2015 年 5 月 1 日
Never mind that, as the content of the file clearly states, it is copyrighted so you're not allowed to post it on the web.
The file that does not exist is the one you're trying to open with textread. Of course, textread exists, it's part of matlab.
Jan
Jan 2015 年 5 月 1 日
@harpreet: HAve you seen the copyright notice in the code you have posted? Please remove this code from the forum.
John D'Errico
John D'Errico 2015 年 5 月 1 日
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.
Stephen23
Stephen23 2015 年 5 月 1 日
What exactly are "function folders" ? How is this script run?

サインインしてコメントする。

回答 (3 件)

Jan
Jan 2015 年 5 月 1 日
編集済み: Jan 2015 年 5 月 1 日

0 投票

The file you want to read does not exist. Set a breakpoint and check this:
exist(fullfile(db_dir, DB, file_ground_truth), 'file')
Image Analyst
Image Analyst 2015 年 5 月 1 日

0 投票

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
gaurav gavande
gaurav gavande 2022 年 3 月 30 日

0 投票

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 件のコメント

Image Analyst
Image Analyst 2022 年 3 月 30 日
Either put that file in that folder, or change the file name to one that DOES exist.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeBig Data Processing についてさらに検索

製品

質問済み:

2015 年 5 月 1 日

コメント済み:

2022 年 3 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by