using the eval command in a loop
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Sean de Wolski
2014년 2월 5일
Why use eval and not just call it normally?
m_text(-75,52,num2str(k+1992),'FontSize',12)
eval is evil.
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!