Plots in Matlab using Latex interpreter
Afficher commentaires plus anciens
Hi
I want to insert a bar over a parameter in xlabel of plot for representing it as an average value. I have used Latex interpreter for this using command:
xlabel('Average throughput $\it{\bar{T}} \rm{(files/slot)}$','interpreter','latex');
set(get(gca,'XLabel'),'Fontname','Times new roman','FontSize',14);
When i excute the command, it doesn't change the font type to Times new roman rather a different font is displayed. Only the font size changes. I think the problem is with \bar{T}. I have changed to Tex and removed $ signs as well then it shows the same text as shown in xlabel.
I will be oblidged if someone could give me suggestion.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Language Support dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!