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!