How to make Greek letters with Latex interpreter?

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?

 Réponse acceptée

Matt Fig
Matt Fig le 6 Août 2012
Modifié(e) : Matt Fig le 6 Août 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)

Plus de réponses (1)

Walter Roberson
Walter Roberson le 30 Juil 2012

0 votes

2 commentaires

Mohammad Dehghani
Mohammad Dehghani le 6 Août 2012
Modifié(e) : Mohammad Dehghani le 6 Août 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.
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?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Labels and Annotations dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by