How to use latex ($\ell}$) in matlab figure ?
22 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2018-10-16
h = text(0.5,0.5,'$\ell_{2,1}$', 'interpreter', 'latex')
Your posting has an unmatched } that would cause problems.
5 个评论
Anil Kumar
2021-11-11
编辑:Walter Roberson
2021-11-13
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!