How to solve the error 'Row index exceeds table dimensions'
32 ビュー (過去 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/564201/image.jpeg)
Please see the snapshot of my table:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/564206/image.jpeg)
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 で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!