필터 지우기
필터 지우기

format column with compose

조회 수: 2 (최근 30일)
piero
piero 2023년 11월 5일
편집: piero 2023년 11월 5일
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
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...
piero
piero 2023년 11월 5일
편집: piero 2023년 11월 5일
"should be the magic incantation you're looking for" :DD
RowColumn=RowName'; ==> this solution is ok! thank

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by