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

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 件のコメント

Shlok
Shlok 2025 年 2 月 25 日
Can you please share the code snippet regarding the same?
VBBV
VBBV 2025 年 2 月 25 日
移動済み: VBBV 2025 年 2 月 26 日
$\hat{\theta_{estim}}$
            % 
Close the curly braces outside the subscript estim

サインインしてコメントする。

 採用された回答

Sam Chak
Sam Chak 2025 年 2 月 25 日

0 投票

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 件のコメント

Peter
Peter 2025 年 2 月 25 日
It does not work on mine side, I am editing directly on canvas ... and it's not working
Peter
Peter 2025 年 2 月 25 日
Hmm, funny ... when I applied $\hat{\theta}_{estim}$ on canvas directly for a first time then it is not working
I applied your from cmd line
title('$\hat{\theta}_{estim}$', 'interpreter', 'latex')
then it depicts correctly ...
and afterwards I might applied it directly then it works ....
Thanks for help and suggestions.
Sam Chak
Sam Chak 2025 年 2 月 25 日
I see. I guess it worked because it first needs to initialize the LaTeX interpreter."
Peter
Peter 2025 年 2 月 25 日
always you need to initialize the interpreter from cmd line?
Sam Chak
Sam Chak 2025 年 2 月 25 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLabels and Annotations についてさらに検索

製品

リリース

R2024b

質問済み:

2025 年 2 月 25 日

移動済み:

2025 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by