How to insert special symbol into plot label?

6 ビュー (過去 30 日間)
Shoyon Panday
Shoyon Panday 2020 年 7 月 4 日
コメント済み: Shoyon Panday 2020 年 7 月 5 日
I'd like to put the above symbol into axis label of the plot but this symbol is not under 'tex' interpreter list. Is there any way to do it?
  3 件のコメント
Sindar
Sindar 2020 年 7 月 4 日
It is Double Struck Capital Q Symbol: https://www.compart.com/en/unicode/U+211A
Can't remember how to use unicode, though
Shoyon Panday
Shoyon Panday 2020 年 7 月 5 日
Thanks Sindar.

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

採用された回答

Walter Roberson
Walter Roberson 2020 年 7 月 4 日
編集済み: Walter Roberson 2020 年 7 月 4 日
DSQ = char(hex2dec('211a'));
qval = randn();
mylabel = sprintf('%s factor = %g', DSQ, qval);
xlabel(mylabel)
Note: this will work for interpreter 'none' and for interpreter 'tex' but will not work for interpreter 'latex'
  1 件のコメント
Shoyon Panday
Shoyon Panday 2020 年 7 月 5 日
Thank you very much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by