entering a space that survives the latex interpreter
조회 수: 23 (최근 30일)
이전 댓글 표시
I'm trying to include blank spaces in the title to a plot. When I run the title string through the latex intepreter, it kills the spaces. Example below illustrates
Is there a way to prevent this? Thanks very much, Leo
plot(1:10)
Title='$\theta$ .';
title(Title,'Interpreter','latex')
댓글 수: 0
채택된 답변
Star Strider
2020년 8월 16일
Try this:
plot(1:10)
Title=sprintf('$\\theta%s.$', repmat('\ ',1,37));
title(Title,'Interpreter','latex')
It may not be the most efficient option, however it appears to do what you want.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!