Readtable error: Index exceeds array bounds.

I ran readtable as in the following command:
E = readtable('C:\Dropbox\Matlab\AAA\BBB.csv');
and got the following error message. Please advise. (Note: the csv file works with Import tool.)
Error using readtable (line 197)
Index exceeds array bounds.
Note: readtable detected the following parameters:
'Delimiter', ',', 'HeaderLines', 0, 'ReadVariableNames', true, 'Format', ''
Error in *** (line 33)
E = readtable('C:\Dropbox\Matlab\AAA\BBB.csv');

댓글 수: 3

Paolo
Paolo 2018년 6월 6일
편집: Paolo 2018년 6월 6일
Whats the format of your .csv file?
alpedhuez
alpedhuez 2018년 6월 6일
MS-DOS
Hi, It would help to see what's in the file. If you can upload the file, I might be able to help you work around this.
Jeremy

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

답변 (1개)

Aakash Deep
Aakash Deep 2018년 6월 6일

0 개 추천

Hello,
You can try
dlmread
command to read a .csv file
If you think path is creating problem somewhere, you can keep the file in the same directory as well and by this there is no need to give path. In your case, the command will be,
data = dlmread('C:\Dropbox\Matlab\AAA\BBB.csv', ',');
Hope this helps :)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

태그

질문:

2018년 6월 6일

댓글:

2018년 6월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by