can i tilte a figure including back slash character?

17 ビュー (過去 30 日間)
larryb bliven
larryb bliven 2015 年 5 月 26 日
回答済み: Star Strider 2015 年 5 月 26 日
fig_title = 'x\y'; title(fig_title) ;
gives error 'Warning: Unable to interpret TeX string'
same warning for fig_title = ['x', char(92), 'y']; is there a proper way to write the code?

採用された回答

Star Strider
Star Strider 2015 年 5 月 26 日
A backslant (\) causes the following character to be rendered literally. So to print one in the title, use two:
title('x\\y')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by