can i tilte a figure including back slash character?
10 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!