How to display a text on a uifigure using an interpreter

16 ビュー (過去 30 日間)
Matteo Bonhomme
Matteo Bonhomme 2023 年 1 月 9 日
コメント済み: Matteo Bonhomme 2023 年 1 月 9 日
Hello,
Recently I was trying to display a text like this on a uifigure
text(0.5,0.5,"Hello_{world}")
axis off
However uitextarea doesn't support any interpreter so it just end up showing Hello_{world}
Any suggestion ?
  1 件のコメント
Matteo Bonhomme
Matteo Bonhomme 2023 年 1 月 9 日
(I made this question after I found a solution because I couldn't find it anywhere. I hope that it helps someone)

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

採用された回答

Matteo Bonhomme
Matteo Bonhomme 2023 年 1 月 9 日
I found a workaround creating a plot and adding a text to the plot then hiding the axes
hFig=uifigure;
ax=uiaxes(hFig);
text(ax,0.5,0.5,"Hello_{world}",'FontSize', 40)
ax.Visible='off';

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by