Problem with "string scalar or character vector must have valid interpreter syntax"
    조회 수: 20 (최근 30일)
  
       이전 댓글 표시
    
Hello saviors,
so, I'm trying to do a subplot title with an annotation 'textbox', and I need it to be latex the interpreter of the text, right? 
This is how I'm  trying to do it: 
% Title
annotation('textbox', [0.23, 0.5, 0.5, 0.5], 'String',...
    'This is my Title','EdgeColor','none','interpreter','latex',...
    'FontWeight','bold', 'FontSize',14);
But then, matlab gives me a warning:
    "Warning: Error updating TextBox.
     String scalar or character vector must have valid interpreter syntax"
and the figure's title comes out with the default interpreter. 
Any idea of what am I doing wrong, or how to solve this issue?
댓글 수: 3
답변 (1개)
  Karthi Ramachandran
 2020년 2월 7일
        I tried whatever u have added , Its working fine, also latex is not required because you are just using string , if you want italics 
'\it{This is my Title}' will do the work . Adding  a $ symbol with latex interpeter wont leave space between words , as that will be treated as a math variables
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


