Error using xlsread.

2 ビュー (過去 30 日間)
Jenice Chen
Jenice Chen 2018 年 12 月 26 日
再開済み: Guillaume 2019 年 1 月 16 日
try
file = validpath(file);
catch exception
error(message('MATLAB:xlsread:FileNotFound', file, exception.message));
end
[~,~,ext] = fileparts(file);
openXMLmode = any(strcmp(ext, matlab.io.internal.xlsreadSupportedExtensions('SupportedOfficeOpenXMLOnly')));
Error using xlsread (line 136)
XLSREAD unable to open file 'ConflictCasesC1-0418-1.xls'.
File 'F:\KI Lab\matlab程式 (2)\code\ConflictCasesC1-0418-1.xls' not found.

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 26 日
Make sure the search path contains the file you need:
'F:\KI Lab\matlab程式 (2)\code\ConflictCasesC1-0418-1.xls' % recheck it if there's file

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by