How to solve the error 'Row index exceeds table dimensions'
47 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MOHAMMAD ABDUL MOKTADIR CHOWDHURY
le 27 Mar 2021
Commenté : MOHAMMAD ABDUL MOKTADIR CHOWDHURY
le 27 Mar 2021
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 commentaires
Réponse acceptée
Cris LaPierre
le 27 Mar 2021
Modifié(e) : Cris LaPierre
le 27 Mar 2021
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 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!