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!

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 2월 5일

0 개 추천

Why use eval and not just call it normally?
m_text(-75,52,num2str(k+1992),'FontSize',12)
eval is evil.

댓글 수: 1

crispin Donnelly
crispin Donnelly 2014년 2월 5일
Right...I see..I tried that but had 'num2str' in quotes!!
Thanks for the help!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

질문:

2014년 2월 5일

댓글:

2014년 2월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by