How to make Greek letters with Latex interpreter?

26 Ansichten (letzte 30 Tage)
Mohammad Dehghani
Mohammad Dehghani am 30 Jul. 2012
I want to write "Omega hat" (the greek letter Omega, with a hat on it) in a plot title and lables. for "u hat", I simply use \it\^{u} with Latex interpreter. But I cannot make Greek letters like Omega by "Latax" interpreter. the only way is using "tex" interpreter, which does not support "hat". Does anyone has any idea? How can we make Greek letters with Latex interpreter?

Akzeptierte Antwort

Matt Fig
Matt Fig am 6 Aug. 2012
Bearbeitet: Matt Fig am 6 Aug. 2012
Here is an example:
text('Interpreter','latex','String','$$\hat{\beta}$$','Position',[.5 .5],'FontSize',16)
or for xlabels:
xlabel('$$\hat{\alpha}$$','Interpreter','latex','FontSize',16)

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 30 Jul. 2012
  2 Kommentare
Mohammad Dehghani
Mohammad Dehghani am 6 Aug. 2012
Bearbeitet: Mohammad Dehghani am 6 Aug. 2012
I still cannot do that!
I want "Capital Omega hat". And it seems neither "Tex", nor "Latex" works for this case. It seems that "Omega hat" cannot be written in the title or labels of a plot.
Thanks all the same.
Mohammad Dehghani
Mohammad Dehghani am 6 Aug. 2012
I use MATLAB 7.7.0 (2008b). My MATLAB interprets "\^{\O}" with Latex correctly, as Phi hat. But when it comes to "alpha", "beta", "Omega", etc, it fails to interpret! Is it a bug in my MATLAB, or I am doing a mistake?

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by