Borrar filtros
Borrar filtros

How can I write this in my figure title?

1 visualización (últimos 30 días)
Ashfaq Ahmed
Ashfaq Ahmed el 17 de Feb. de 2023
Comentada: Les Beckham el 17 de Feb. de 2023
Hi! Can anyone please tell me how can I write this in my figure (either in title or in y axis)?
Thank you!!

Respuesta aceptada

Arif Hoq
Arif Hoq el 17 de Feb. de 2023
Editada: Arif Hoq el 17 de Feb. de 2023
plot(1:10)
% t = '$\frac{H}{|H_m{_a}{_x}|}$';
[t,s]=title('$\frac{H}{|H_m{_a}{_x}|}$','interpreter','latex');
t.FontSize = 18;
  2 comentarios
Ashfaq Ahmed
Ashfaq Ahmed el 17 de Feb. de 2023
Great!
Les Beckham
Les Beckham el 17 de Feb. de 2023
Nice.
I find this a bit easier to read, however,
[t,s] = title('$\frac{H}{|H_{max}|}$', 'interpreter', 'latex');
as opposed to the multiple curly braces and underscores for each letter of "max"
[t,s]=title('$\frac{H}{|H_m{_a}{_x}|}$','interpreter','latex');

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by