add element in table
Afficher commentaires plus anciens
ff(:,1)
ans =
table
Name
____
TEST
%%*****************************************
d1(:,1)
ans =
table
Name
________
"TEST_1"
ff(end+1,:)=d1
Error using ()
Unable to perform assignment for table variable 'Name' because its size on the left side is 1-by-4 and the size
of the corresponding variable on the right side is 1-by-1.
i don't understand this error...size name in ff and d1 is the same
K>> size(ff(:,1))
ans =
1 1
K>> size(d1(:,1))
ans =
1 1
Réponse acceptée
Plus de réponses (1)
Fangjun Jiang
le 1 Mar 2024
0 votes
You should check size(ff(end,:)). I assume it has 4 columns.
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!