Readtable error: Index exceeds array bounds.

1 visualización (últimos 30 días)
alpedhuez
alpedhuez el 6 de Jun. de 2018
Comentada: Jeremy Hughes el 8 de Jun. de 2018
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 comentarios
alpedhuez
alpedhuez el 6 de Jun. de 2018
MS-DOS
Jeremy Hughes
Jeremy Hughes el 8 de Jun. de 2018
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

Iniciar sesión para comentar.

Respuestas (1)

Aakash Deep
Aakash Deep el 6 de Jun. de 2018
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 :)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by