Error labelling table columns
3 views (last 30 days)
Show older comments
Luis Eduardo Cofré Lizama
on 3 Sep 2018
Answered: Luis Eduardo Cofré Lizama
on 3 Sep 2018
I am trying to make a table and label using Table_RMA = array2table (CoP_Balance(:,1:98),'VariableNames',{'Patient','Gender','Dg','Aff_Side','Inj_Site','Ax','Condition','CoP_Side',.....the other 90 names}); However, I Keep on getting this error: Error using matlab.internal.tabular.private.varNamesDim/validateAndAssignLabels (line 321) Duplicate variable name: 'CoP_Side'.
For some reason even when I change 'CoP_Side' to any other word I still get the same error message.
Any suggestions on what am doing wrong?
cheers
Eduardo
Accepted Answer
Cesar Antonio Lopez Segura
on 3 Sep 2018
Hi Luis Eduardo,
We need your complete code to help you. But using this example I have not errors.
vector = cat( 1,[1:8],[8:15],[16:23] );
Table_RMA = array2table (vector,'VariableNames',{'Patient','Gender','Dg','Aff_Side','Inj_Site','Ax','Condition','CoP_Side'})
0 Comments
More Answers (1)
See Also
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!