Hi! After updating to Version 2016b the xlsread function gives out following error:
Error using xlsread (line 249)
Error: File: xlsreadCOM.m Line: 113 Column: 12
Arguments to IMPORT must either end with ".*" or else specify a fully qualified class name:
"matlab.io.spreadsheet.internal.columnLetter" fails this test.
With the Version 2015b the function worked fine! Can anyone help?
Thanks a lot. Cheers, Chris

댓글 수: 6

What is the output of the following commands?
which -all xlsread
which -all matlab.io.spreadsheet.internal.columnLetter
CL = which('matlab.io.spreadsheet.internal.columnLetter');
P = path;
pCL = fileparts(CL);
packagepart = findstr(CL, '+matlab');
if ~isempty(CL)
CL = CL(1:packagepart-2);
end
isOnPath = strfind(P, CL)
Angelo (Scotty) Gilmore
Angelo (Scotty) Gilmore 2016년 9월 28일
편집: per isakson 2016년 12월 5일
I am getting the same error on something which used to work fine. I ran the code Steven Lord posted and this is what I got:
which -all xlsread
which -all matlab.io.spreadsheet.internal.columnLetter
CL = which('matlab.io.spreadsheet.internal.columnLetter');
P = path;
pCL = fileparts(CL);
packagepart = findstr(CL, '+matlab');
if ~isempty(CL)
CL = CL(1:packagepart-2);
end
isOnPath = strfind(P, CL)
C:\Program Files\MATLAB\R2016b\toolbox\matlab\iofun\xlsread.m
'matlab.io.spreadsheet.internal.columnLetter' not found.
isOnPath =
[]
Jeremy Hughes
Jeremy Hughes 2016년 9월 29일
This sounds like an installation issue. A fresh reinstall of MATLAB will likely fix the issue. If that doesn't work, you should contact support.
Harm
Harm 2016년 12월 5일
Hi, got the same issue on my 2016b. 2016a works fine. Can anyone confirm the reinstall is the fix for this?
Steven's code give the same result on my R2016a
C:\Program Files\MATLAB\R2016a\toolbox\matlab\iofun\xlsread.m
'matlab.io.spreadsheet.internal.columnLetter' not found.
isOnPath =
[]
>> version
ans =
9.0.0.341360 (R2016a)
Harm
Harm 2016년 12월 9일
For me, a full deinstall and reinstall of 2016b solved this problem. The code from Steve no longer results in an empty value.

댓글을 달려면 로그인하십시오.

 채택된 답변

Henrique
Henrique 2016년 12월 20일
편집: Henrique 2016년 12월 20일

7 개 추천

Try to restore Matlab path to its default with the commands:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
I had exactly the same problem as yours and restoring the path solved it.

댓글 수: 3

Antoni
Antoni 2017년 3월 29일
I had the same problem with 2017a version and your proposed solution works perfectly. Thanks.
linghao x
linghao x 2020년 4월 28일
편집: linghao x 2020년 4월 28일
This also solves my error:
Error using print (line 83)
Error: File: datestr.m Line: 126 Column: 8
The import statement 'import matlab.internal.datatypes.stringToLegacyText' cannot be found or cannot be imported. Imported
names must end with '.*' or be fully qualified.
Error in saveas (line 181)
print( h, name, ['-d' dev{i}] )
Error in main_v4 (line 210)
saveas(gcf,'step2wc0_effect.png');
Thanks so much!
Robert Mills
Robert Mills 2020년 7월 18일
Bingo

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Youssef
Youssef 2017년 6월 30일

0 개 추천

I have the same issue, and used the restore commands, but now it gives me empty data file. the loading fails to bring data. Does anyone have a solution?
Thanks.

댓글 수: 1

Youssef
Youssef 2017년 6월 30일
Thanks. I figure ot the error. The restore commands worked well.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2016b

질문:

2016년 9월 20일

댓글:

2020년 7월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by