Hi all
I am appending a table to another one during a loop, every time I calculate the first one in each cycle.
this is the error I get
Subscripting into a table using one subscript (as in t(i)) or three or more subscripts (as in t(i,j,k)) is not supported. Always specify a row subscript and a variable subscript, as in t(rows,vars).
Elapsed time is 21.683230 seconds.
and this is my code :
fn = cell2table(Tc, 'VariableNames', table_without_header.Properties.VariableNames);
if f1==1
Tout{1}=[fn];
else
Tout{f1} = [Tout{f1-1};fn];
end
fn is a 9x1 table and I think after the first loop, that also Tout becomes a 9x11 table I get this problem. how to resolve it ?
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/641435-appending-a-table-to-another-index-error#comment_1119725
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/641435-appending-a-table-to-another-index-error#comment_1119725
Sign in to comment.