Subscripts of "n", "m", "d", etc in the string field of gui

Dear all,
The "_" was useful to express subscripts for axis labels of figures, but it didn't work for a string field of gui.
I saw one example here of typing superscript "2" using unicode. However, this is just a limited case and I have not found so far for other cases: subscripts and superscripts of other numbers, latin letters, greek letters, and so on.
I will be very grateful if you could let me know how to do so.
Thanks a lot! Jinwon

 Accepted Answer

3 Comments

Thanks for your quick answer. My current command is
set(handles.text4, 'string', 'T_n');
which yields just 'T_n' literally in gui. Could you fix this command to enable subscript 'n' in gui? Thanks
set(handles.text4, 'style', 'push', 'enable', 'off', 'string', '<HTML>T<sub>n')
Dear Walter, Wow... Fantastic! I really appreciate it.
It works but the static text has been changed to push button with off state, which resulted in faint text with border. Is it possible to change the style including font color, border line, etc same as the default static text? Thanks again for you help.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!