Error using xlsread with MatLabR2020b

조회 수: 1 (최근 30일)
Filippo Bocchi
Filippo Bocchi 2020년 11월 16일
답변: Sourabh Kondapaka 2020년 11월 19일
Basically, when I run the xlsread function, it seems that I can't read more than 108 array elements on an Excel File.
>> [num, txt, raw] = xlsread (infile, 'A100:A2000');
Error using xlsread (line 257)
Index exceeds the number of array elements (108).
  1. Is there a way to fix this?
  2. Why I'm experiencing this problem?
  댓글 수: 1
Matt Derosier
Matt Derosier 2020년 11월 16일
I'm currently helping someone in a lab with xlsread issues and readmatrix is what Mathworks is recommending for anything after 2019a (https://www.mathworks.com/help/matlab/ref/xlsread.html).
Hope this helps you as well!

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

답변 (1개)

Sourabh Kondapaka
Sourabh Kondapaka 2020년 11월 19일
As Matt Derosier had suggested , avoid using the xlsread function. On achieving what you wanted with readtable() function please check the Compatibility Considerations sections of this link

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by