writing a string

조회 수: 12 (최근 30일)
joseph Frank
joseph Frank 2011년 7월 3일
A=3; B=17; how can I write a string: 'Panel A: range(3-17)'?

채택된 답변

the cyclist
the cyclist 2011년 7월 3일
['Panel A: range(',num2str(A)','-',num2str(B),')']

추가 답변 (1개)

per isakson
per isakson 2011년 7월 3일
I prefer
sprintf( 'Panel A: range(%u-%u)', A, B )
because I make fewer mistakes using that style
- per

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by