How to insert special symbol into plot label?

조회 수: 19 (최근 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'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by