How to insert special symbol into plot label?

22 visualizaciones (últimos 30 días)
Shoyon Panday
Shoyon Panday el 4 de Jul. de 2020
Comentada: Shoyon Panday el 5 de Jul. de 2020
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 comentarios
Sindar
Sindar el 4 de Jul. de 2020
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 el 5 de Jul. de 2020
Thanks Sindar.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Jul. de 2020
Editada: Walter Roberson el 4 de Jul. de 2020
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'

Más respuestas (0)

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by