How to put hat over a greek symbol express its value in legend of a plot?

26 ビュー (過去 30 日間)
dayu
dayu 2019 年 3 月 22 日
コメント済み: madhan ravi 2019 年 3 月 22 日
I want to write expressions like alpha_0 cap(or hat)=0, alpha_0 cap(or hat)=1 and so on in legend of a plot.
Need to display aplha, with subsscript zero, with a hat, equate to a numerical value.
Kindly help me.

採用された回答

madhan ravi
madhan ravi 2019 年 3 月 22 日
legend(sprintf('$\\hat{\\alpha}(0) = %d$',2),'Interpreter','latex')
% ^----- numeric value
  6 件のコメント
madhan ravi
madhan ravi 2019 年 3 月 22 日
Maybe it’s because of version: Try:
z= ['$\hat{\alpha}(0) =',num2str(2)','$'];
legend(z,'Interpreter','latex')
madhan ravi
madhan ravi 2019 年 3 月 22 日
If you mean subscript: Then use ^{0} - above or _{0} - below instead of (0)

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

その他の回答 (1 件)

KSSV
KSSV 2019 年 3 月 22 日

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

製品


リリース

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by