How to make an subscript in this specific manner?

3 views (last 30 days)
I am trying to print a axis label using the following code to make it italicized
ylabel('$u_max$','interpreter','latex','FontSize',14);
I wanr the "max" to all be a subscript to "u" but as of right now only the "m" is a subscript and the rest of the word is normal alongside the "u". How would I make the whole "max" a subscript in the way I have coded it?

Answers (1)

Image Analyst
Image Analyst on 13 Feb 2025
Put the max in braces:
ylabel('$u_{max}$','interpreter','latex','FontSize',14);

Tags

Community Treasure Hunt

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

Start Hunting!