How to display subscript for ColumnName of UITable in Design App?

조회 수: 4(최근 30일)
binh23294 2021년 6월 13일
편집: Adam Danz 2021년 6월 14일
Hi guys,
I have a table in design app as below. I want to dispplay subscript for columnname such as qb, i had used html by code
This is worked in command window but it doesn't worked in design app.
In design app
In command window
Please help me. Thanks very much!
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 6월 13일
That kind of use of <html> was only for uitable() with traditional figures.

댓글을 달려면 로그인하십시오.


Adam Danz
Adam Danz 2021년 6월 13일
편집: Adam Danz 2021년 6월 14일
If you're willing to use a different subscript letter, you can use one of the available unicode subscripts (a,e,h,i,j,k,l,m,n,o,p,r,s,t). 'b' is available as a superscript but not a subscript (thanks, unicode).
Example 1 uses subscript a; example 2 uses superscript b
Example 1
data = zeros(5,3);
app.UIFigure = uifigure();
app.UITable = uitable(app.UIFigure, 'Data', data);
Example 2




Community Treasure Hunt

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

Start Hunting!

Translated by