Issue with latex interpreter plot/chart title
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I would like to assign plot title as follows Y_10mm_X = num2str(b2(i)). where i = 0.78
For this, I tried as follows
title(['Y= 5mm_x =' num2str(b2(i)) ' mm'],'FontSize',20,'Color','black','Interpreter','latex')
However, I got teh below error..Please help me with this..
String scalar or character vector must have valid interpreter syntax:
댓글 수: 0
채택된 답변
Walter Roberson
2022년 2월 11일
Are you certain that you want the x to be a subscript of the second m ??
i = 1;
b2(i) = 0.78
title(['$Y= 5mm_x =' num2str(b2(i)) ' mm$'], 'FontSize', 20, 'Color', 'black', 'Interpreter', 'latex')
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 LaTeX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!