Info
此问题已关闭。 请重新打开它进行编辑或回答。
why function name added to table column name?
1 次查看(过去 30 天)
显示 更早的评论
I used sortrow to sort the columns of table and it worked but sortrow is added to each variable name of table.
sortedtable=varfun(@sortrows,KsTable,'GroupingVariables',{'k_name'});
The table before using sortrow:
after using sortrow:
any idea how to fix this?
0 个评论
回答(1 个)
Walter Roberson
2019-10-27
I do not see an option to override that. However you can
sortedtable.Properties.VariableNames = KsTable.Properties.VariableNames;
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!