sprintfで文字列をで書き出す場合、’_’があると下付き文字となるのはどうやって解消すればいいのでしょうか
86 views (last 30 days)
Show older comments
sprintfで文字列をで書き出す場合、’_’があると下付き文字となるのはどうやって解消すればいいのでしょうか
0 Comments
Accepted Answer
Hiroki Okawa
on 25 Nov 2019
Edited: Hiroki Okawa
on 25 Nov 2019
'A_B'となっている箇所を'A\_B'としてみてください。
sprintfの仕様ではなく、恐らく入力先のオブジェクトの仕様で、Interpreterプロパティが'tex'になっているのだと思います。
例えばtitle関数では
title('A_B', 'Interpreter', 'none')
とすることで下付き文字化を避けることができます。
0 Comments
More Answers (0)
See Also
Categories
Find more on グラフィックス オブジェクトのプロパティ in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!