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

4 次查看(过去 30 天)
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!

采纳的回答

Star Strider
Star Strider 2019-6-4
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 个评论

请先登录,再进行评论。

更多回答(1 个)

Leon
Leon 2019-6-4
Thanks all for the replies. I'm using Excel Version 16.25 on MacOS 10.14.5

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

标签

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by