writing a string

3 ビュー (過去 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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by