can't write "hat", "tilde", "bar" in the title of the figure

9 vues (au cours des 30 derniers jours)
Peter
Peter le 25 Fév 2025
Déplacé(e) : VBBV le 26 Fév 2025
I can't write the a greek letter with "hat" into figure title - I follow the dicusssion
it seems none is working for me ... ? why?
it can't interpret as LaTex...
  2 commentaires
Shlok
Shlok le 25 Fév 2025
Can you please share the code snippet regarding the same?
VBBV
VBBV le 25 Fév 2025
Déplacé(e) : VBBV le 26 Fév 2025
$\hat{\theta_{estim}}$
            % 
Close the curly braces outside the subscript estim

Connectez-vous pour commenter.

Réponse acceptée

Sam Chak
Sam Chak le 25 Fév 2025
I have problem with the GUI in past releases. I usually type out the syntax on the Command Window.
title('$\hat{\theta}_{estim}$', 'interpreter', 'latex')
xlabel('$\sqrt{x}$', 'interpreter', 'latex')
  5 commentaires
Peter
Peter le 25 Fév 2025
always you need to initialize the interpreter from cmd line?
Sam Chak
Sam Chak le 25 Fév 2025
The GUI cannot differentiate between whether the user wants to display $\sqrt{x}$ or .
Nowadays, I write all my code in scripts; however, on rare occasions, I need to demonstrate to some students how to use certain UI-assisted apps to aid in their designs. Nevertheless, you may consider suggesting to the MathWorks team the enhancement of the GUI by adding a LaTeX toggle button.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by