How to display subscript for ColumnName of UITable in Design App?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
binh23294
am 13 Jun. 2021
Bearbeitet: Adam Danz
am 14 Jun. 2021
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
app.UITable.ColumnName={'<html>q<sub>b','ΣRfi','Rb'}
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 Kommentar
Walter Roberson
am 13 Jun. 2021
That kind of use of <html> was only for uitable() with traditional figures.
Akzeptierte Antwort
Adam Danz
am 13 Jun. 2021
Bearbeitet: Adam Danz
am 14 Jun. 2021
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);
app.UITable.ColumnName={['q',char(8336)],'ΣRfi','Rb'};
Example 2
app.UITable.ColumnName={['q',char(7495)],'ΣRfi','Rb'};
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!