How do I print [%] in a title plot while using LaTeX interpeter?

조회 수: 2 (최근 30일)
Darío Slaifstein
Darío Slaifstein 2020년 7월 12일
답변: madhan ravi 2020년 7월 12일
Hi, guys!
I'm creating a plot whose title should look like:
η[%]
while using:
title('$\eta [%]$','fontsize',14,'interpreter','latex')
But it returns the following Warning and the wrong title:
Warning: Error updating Text.
String scalar or character vector must have valid interpreter syntax:
$\eta [
any idea?

채택된 답변

madhan ravi
madhan ravi 2020년 7월 12일
title('$\eta \left[\%\right]$','interpreter','latex','FontSize',14)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by