Filter löschen
Filter löschen

format column with compose

2 Ansichten (letzte 30 Tage)
piero
piero am 5 Nov. 2023
Bearbeitet: piero am 5 Nov. 2023
here i format row :
formatSpec = "%d - %s";
RowName=compose(formatSpec,t2,sis);
but if i want to format columns? how can i do?
  6 Kommentare
dpb
dpb am 5 Nov. 2023
@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...
piero
piero am 5 Nov. 2023
Bearbeitet: piero am 5 Nov. 2023
"should be the magic incantation you're looking for" :DD
RowColumn=RowName'; ==> this solution is ok! thank

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by