using the eval command in a loop
2 views (last 30 days)
Show older comments
Hi...
this line is working in my for loop...
eval(['m_text(-75,52,{' num2str(k+1992) '})'])
great...but I want to set the fontsize. How do I add this code (i,e,... 'Fontsize',12) to my eval line??
Thanks!
0 Comments
Answers (1)
Sean de Wolski
on 5 Feb 2014
Why use eval and not just call it normally?
m_text(-75,52,num2str(k+1992),'FontSize',12)
eval is evil.
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!