フィルターのクリア

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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by