필터 지우기
필터 지우기

inserting variables in \textrm.

조회 수: 3 (최근 30일)
Ulrik William Nash
Ulrik William Nash 2015년 4월 30일
답변: Thorsten 2015년 4월 30일
Hi,
I am trying to incorporate the content of variable2 into \textrm. I am having trouble getting this to work. My attempt is shown further down. What am I doing wrong?
variable2 = ['sometext ',sprintf('%0.3f', variable1), ' '];
text(x,y,'\textrm{variable2}','interpreter','latex','Interpreter','latex','fontsize', font_x,'FontWeight','bold')
I appreciate the help!

답변 (1개)

Thorsten
Thorsten 2015년 4월 30일
text(x, y, ['\textrm{' variable2 '}'], ...)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by