Issue with latex interpreter plot/chart title
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Turbulence Analysis
el 11 de Feb. de 2022
Comentada: Turbulence Analysis
el 11 de Feb. de 2022
Hi, I would like to assign plot title as follows Y_10mm_X = num2str(b2(i)). where i = 0.78
For this, I tried as follows
title(['Y= 5mm_x =' num2str(b2(i)) ' mm'],'FontSize',20,'Color','black','Interpreter','latex')
However, I got teh below error..Please help me with this..
String scalar or character vector must have valid interpreter syntax:
0 comentarios
Respuesta aceptada
Walter Roberson
el 11 de Feb. de 2022
Are you certain that you want the x to be a subscript of the second m ??
i = 1;
b2(i) = 0.78
title(['$Y= 5mm_x =' num2str(b2(i)) ' mm$'], 'FontSize', 20, 'Color', 'black', 'Interpreter', 'latex')
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre LaTeX en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!