Effacer les filtres
Effacer les filtres

num2str font size

3 vues (au cours des 30 derniers jours)
KalMandy
KalMandy le 3 Jan 2017
Commenté : KalMandy le 11 Jan 2017
Hi, can someone tell me how to increase the font size when using num2str?
ex:text(x(i),y(i),num2str(i))

Réponse acceptée

KSSV
KSSV le 3 Jan 2017
text(x(i),y(i),num2str(i),'FontSize',14)
Specify your required size...
  1 commentaire
KalMandy
KalMandy le 11 Jan 2017
Thank you very much.

Connectez-vous pour commenter.

Plus de réponses (1)

José-Luis
José-Luis le 3 Jan 2017
Modifié(e) : José-Luis le 3 Jan 2017
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');

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by