Error using xlsread.

2 visualizaciones (últimos 30 días)
Jenice Chen
Jenice Chen el 26 de Dic. de 2018
Abierta de nuevo: Guillaume el 16 de En. de 2019
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.

Respuestas (1)

madhan ravi
madhan ravi el 26 de Dic. de 2018
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

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by