axis label subscript in latex environment

25 vues (au cours des 30 derniers jours)
Chirag
Chirag il y a environ 13 heures
Commenté : dpb il y a environ 7 heures
Hi,
I have following code for the ylabel. However, it does not show a proper subscript 'E'. I use MATLAB 2025a. Any help will be highly appreciated.
ylabel('$\tilde{p}_E \ (-)$','FontSize',14','FontName','TimesNewRoman','Interpreter','latex');
  3 commentaires
Chirag
Chirag il y a 41 minutes
Thanks Dyuman, yes i tried with both 'e' and 'E'. With 'e', it works, however, if we look into the lower base for 'p' and 'E' are different; 'E' is placed sightly higher than 'p' on axis label. I do not know why.
This was working fine with older MATLAB version, probably 2018 or 2019. Here is the figure with Matlab 2018 and it produces subscript properly in latex environment and with same code.
dpb
dpb il y a environ 3 heures
I tried with (from left to right) R2024b, R2022b, R2019b and R2017b and can see no discernible difference.

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by