Error using xlsread.

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

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

类别

帮助中心File Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

提问:

2018-12-26

重新打开:

2019-1-16

Community Treasure Hunt

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

Start Hunting!

Translated by