format column with compose
2 ビュー (過去 30 日間)
古いコメントを表示
here i format row :
formatSpec = "%d - %s";
RowName=compose(formatSpec,t2,sis);
but if i want to format columns? how can i do?
6 件のコメント
dpb
2023 年 11 月 5 日
@piero is presuming (as best info we have since you didn't provide testing dataset) the "1 - " prefix in your first image is real.
If so, then
RowName=extractAfter(compose(formatSpec,t2,sis),"- ").';
should be the magic incantation you're looking for.
If not, attach a (small) example dataset for folks to play with...
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!