num2str with latex
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marisabel Gonzalez
el 17 de Dic. de 2018
Hi, so I have this label which works fine. However, I've created a function in which the exponent varies (1/4). Therefore, I put a variable m in there and used num2str but the label doesn't come up right....
How could I apply num2str in the exponent for this case?
xlabel('$\it{\bf{(f_{ohm}P)^{1/4}}}$','Interpreter','Latex','FontSize', 15 )
2 comentarios
Luna
el 17 de Dic. de 2018
share the code part of using num2str. What kind of result you are expecting?
Respuesta aceptada
Luna
el 17 de Dic. de 2018
Try this below:
m = 1/4;
a = ['$\it{\bf{(f_{ohm}P)^{',rats(m), '}}}$'];
xlabel(a,'Interpreter','Latex','FontSize', 15 );
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Axis Labels 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!