another quick question about string read
이전 댓글 표시
gesNum = 6;
I want to get modelsq_6 other than modelsq_gesNum by using : sprintf('%s_%s', 'modelsq', 'gesNum'); I know this is wrong way, so how should I do?
댓글 수: 1
Jan
2013년 2월 13일
@UTA: The documentation of sprintf does explain this clearly, so please read again:
help sprintf
doc sprintf
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2013년 2월 13일
sprintf('modelsq_%d', gesNum);
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!