What is the escape character when using xlabel?
4 次查看(过去 30 天)
显示 更早的评论
Hi everyone, I am trying to output, on the x axis of my graph
z'
Now, I am using the matlab command xlabel('Z','fontsize',12,'fontweight','b');
but require an escape character so that the function does not mistake this.
python or java would have a syntax such as \ to escape but I am not having any luck with this in matlab.
Thank you!
0 个评论
采纳的回答
Jan
2012-12-29
xlabel('Z''','fontsize',12,'fontweight','b')
Inside Matlab strings the quote is the escape character for the quote.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!