How to put subscript in uilabel text and can I specify location on same line?
4 views (last 30 days)
Show older comments
I have the following (gl is a uigridlayout)
lblKa = uilabel(gl,"Text","K_a","HorizontalAlignment","center");
lblKa.Layout.Row = 2;
lblKa.Layout.Column = 4;
I am trying to subscript the "a" in "Ka". Also, is it possible to specify the layout row and column in a way that I can reduce three lines of code to one?
Jonas on 21 Dec 2022
for subscript, use other text interpreters, e.g. tex
without beeing familiar with uigridlayout, i do not think, that it is possible that easily. But like it is, it is nicely readable
More Answers (1)
Find more on Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!