MATLAB Answers

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

조회 수: 3(최근 30일)
Darío Slaifstein
Darío Slaifstein 12 Jul 2020
답변: madhan ravi 12 Jul 2020
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?

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(1개)

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

  댓글 수: 0

댓글을 달려면 로그인하십시오.

태그

제품


Translated by