How to insert special symbol into plot label?

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 个评论

Can you find a font that includes the desired symbol?
It is Double Struck Capital Q Symbol: https://www.compart.com/en/unicode/U+211A
Can't remember how to use unicode, though

请先登录,再进行评论。

 采纳的回答

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'

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by