num2str font size

4 views (last 30 days)
KalMandy
KalMandy on 3 Jan 2017
Commented: KalMandy on 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))

Accepted Answer

KSSV
KSSV on 3 Jan 2017
text(x(i),y(i),num2str(i),'FontSize',14)
Specify your required size...

More Answers (1)

José-Luis
José-Luis on 3 Jan 2017
Edited: José-Luis on 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');

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!