How to solve the error 'Row index exceeds table dimensions'

46 次查看(过去 30 天)
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

采纳的回答

Cris LaPierre
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 个)

drummer
drummer 2021-3-27
What are the dimensions of your f table if you
size(f)
?

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by