필터 지우기
필터 지우기

num2str font size

조회 수: 3 (최근 30일)
KalMandy
KalMandy 2017년 1월 3일
댓글: KalMandy 2017년 1월 11일
Hi, can someone tell me how to increase the font size when using num2str?
ex:text(x(i),y(i),num2str(i))

채택된 답변

KSSV
KSSV 2017년 1월 3일
text(x(i),y(i),num2str(i),'FontSize',14)
Specify your required size...
  댓글 수: 1
KalMandy
KalMandy 2017년 1월 11일
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

José-Luis
José-Luis 2017년 1월 3일
편집: José-Luis 2017년 1월 3일
num2str() has nothing to do with the font size. It just does what its name implies. Once you have got your string, here is a way of setting its size:
axes;
text(0.5, 0.5,'\fontsize{24}{0}\selectfont{I am big}\fontsize{8}{0}\selectfont{I am small}','Interpreter','Latex');

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by