How can I display a table with many rows?

20 views (last 30 days)
Hi everyone, i have a problem: i want to create a table with 42 rows and 19 column, i used these commands
T = table(I_S_A,I_O_P, I_M_A, I_S_E, I_R_P, I_G,I_E_I, I_E, I_E_N, I_L_P, I_H_R, I_S, I_P, I_E_F,...
I_S_D_G, I_P_G, I_T_G, I_4_0, I_C_E);
T(1:42,:)
But the answere in Command Window is :
"Error using prova (line 1099)
Row index exceeds table dimensions. "
How can i fix it? .Inserting T (1:41,:) the table comes out but with T(1:42,:) no. Who helps me? thank you very much in advance!

Accepted Answer

Star Strider
Star Strider on 21 Mar 2020
Apparently, the vectors that create the table only have 41 elements. In a table, the first row (the 'VariableNames') is not considered part of the table data, and so cannot be addressed as part of the data.
  6 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Data Type Identification in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!