num2str font size

4 visualizaciones (últimos 30 días)
KalMandy
KalMandy el 3 de En. de 2017
Comentada: KalMandy el 11 de En. de 2017
Hi, can someone tell me how to increase the font size when using num2str?
ex:text(x(i),y(i),num2str(i))

Respuesta aceptada

KSSV
KSSV el 3 de En. de 2017
text(x(i),y(i),num2str(i),'FontSize',14)
Specify your required size...
  1 comentario
KalMandy
KalMandy el 11 de En. de 2017
Thank you very much.

Iniciar sesión para comentar.

Más respuestas (1)

José-Luis
José-Luis el 3 de En. de 2017
Editada: José-Luis el 3 de En. de 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');

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by