How to use latex ($\ell}$) in matlab figure ?
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to use a latex form '$\ell}$' in MATLAB figure, but it seems that MATLAB figure doesn't support this command? How to type this command in MATLAB figure?

0 commentaires
Réponses (1)
Walter Roberson
le 16 Oct 2018
h = text(0.5,0.5,'$\ell_{2,1}$', 'interpreter', 'latex')
Your posting has an unmatched } that would cause problems.
5 commentaires
Walter Roberson
le 16 Oct 2018
h = legend('$\ell_{2,1}$');
h.Interpreter = 'latex';
Anil Kumar
le 11 Nov 2021
Modifié(e) : Walter Roberson
le 13 Nov 2021
How to write it for a color axis?
c = colorbar;
set(c,'FontSize',32);
%set(c,'FontSize',32,'Interpreter','latex');%didn't work
c.Label.String = '$E^{\ell}_{n(3)}$';
c.label.String.Interpreter='latex' % didn't work
caxis([min(x(:,14)) max(x(:,14))]);
am I missing something here? Thanks
Edit:
c.Label.Interpreter = 'latex';
found here
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!