Error: Index in position 2 exceeds array bounds in xlsread

hi all
what is the reason of the error opening excel xlsx files ?
Error: Index in position 2 exceeds array bounds.

3 个评论

This indicates you're trying to reference a column that does not exist. See this answer for more details.
if the error is on the reading then you might have accidentally created a variable with the same name as the reading function you are using.
You forgot to show the complete error message. Please show ALL the red text, not just a small snippet from it. For example, the red text will show the actual line(s) of code that threw the error, something you forgot to show us.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by