xlsread error: Array indices must be positive integers or logical values.

1 visualización (últimos 30 días)
When I try to use xlsread to read the attached Excel file:
[A B C] = xlsread('AA.xlsx');
Why do I keep getting this error? It seems the problem is the last column, but why?
Error using xlsread (line 257)
Array indices must be positive integers or logical values.
Many thanks!

Respuesta aceptada

Star Strider
Star Strider el 4 de Jun. de 2019
I was able to read your file without error.
However, if you have R2013b or lalter release, the readtable (link) function is likely the best option for your file:
AA_Table = readtable('AA.xlsx')
  5 comentarios

Iniciar sesión para comentar.

Más respuestas (1)

Leon
Leon el 4 de Jun. de 2019
Thanks all for the replies. I'm using Excel Version 16.25 on MacOS 10.14.5

Categorías

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

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by