필터 지우기
필터 지우기

How to display a text on a uifigure using an interpreter

조회 수: 21 (최근 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 CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by