xlsread error: Invalid ConnectionPointContainer
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I want to import some data from Excel to Matlab. I use xlsread:
[ndata, text, alldata] = xlsread('Test.xlsx')
The Excel file contains a 3x3 table: [1,2,3;4,5,6;7,8,9]
The error I encounter is:
>> [ndata, text, alldata] = xlsread('Test.xls')
Error using xlsread (line 247)
Error registering event(s), Invalid ConnectionPointContainer
I use WinXP, Matlab R2012b and Excel 2007. (the same error occurs when I use an .xlsx file)
Can anyone help me?
Thanks
댓글 수: 2
Friedrich
2013년 8월 30일
Can you run:
dbstop if caught error
before running xlsread. You should stop in the line which raises error. Which file and line is it?
답변 (1개)
Geert
2013년 8월 30일
Did you make sure that your current Matlab path is the same as the folder where 'Test.xlsx' is stored?
A save way of preventing this is issue is specifying the full path, for example:
>> [ndata, text, alldata] = xlsread('C:\Users\Fontys\Desktop\Test.xls')
Does this solve your problem?
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!