How can I write this in my figure title?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi! Can anyone please tell me how can I write this in my figure (either in title or in y axis)?
Thank you!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1298370/image.jpeg)
0 commentaires
Réponse acceptée
Arif Hoq
le 17 Fév 2023
Modifié(e) : Arif Hoq
le 17 Fév 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 commentaires
Les Beckham
le 17 Fév 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');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Title dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!