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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Jul. 2020
Bearbeitet: Walter Roberson am 4 Jul. 2020

0 Stimmen

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'

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by