How to solve the error 'Row index exceeds table dimensions'
조회 수: 33 (최근 30일)
이전 댓글 표시
MOHAMMAD ABDUL MOKTADIR CHOWDHURY
2021년 3월 27일
댓글: MOHAMMAD ABDUL MOKTADIR CHOWDHURY
2021년 3월 27일
Hi,
I am trying to plot a graph in matlab by using simple code but it shows me 'Row Index exceeds table dimensions'.
Please see the error message below:
Please see the snapshot of my table:
Please advise
Thanks
댓글 수: 0
채택된 답변
Cris LaPierre
2021년 3월 27일
편집: Cris LaPierre
2021년 3월 27일
You haven't shown us the size of your table, which would be helpful given the error message you are getting. My suspicion is that, in MATLAB, your table does not have 3843 rows. Based on your indexing, and the fact you used readtable, I suspect if you use 1:3842, your code will work. If that is the case, then you can just use a colon instead to indicate all rows.
f{:,8:11};
f{:,4:7};
댓글 수: 5
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!