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

madhan ravi
madhan ravi 2018년 12월 26일

0 개 추천

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