What is the escape character when using xlabel?

4 ビュー (過去 30 日間)
u-will-neva-no
u-will-neva-no 2012 年 12 月 29 日
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!

採用された回答

Jan
Jan 2012 年 12 月 29 日
xlabel('Z''','fontsize',12,'fontweight','b')
Inside Matlab strings the quote is the escape character for the quote.
  1 件のコメント
u-will-neva-no
u-will-neva-no 2012 年 12 月 29 日
Perfect. Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by