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

27 次查看(过去 30 天)
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