Is there a way to make a column name in a uitable have superscript text?

headers = {'Depth | (m)','Thickness|(m)',' Velocity | (m/sec)','Unit Weight |... (kN/m^3)',' | PI',' | OCR','','Minimum Vs | (m/sec)','','Maximum Vs |... (m/sec)','Sigma (ln) | Velcity'};
set(handles.Profile_uitable,'ColumnName',headers);
I want the 3 in m^3 to be superscript but i cant find a way to make it work in the uitable coulumn name property.

回答 (1 件)

Jing
Jing 2013 年 3 月 29 日

0 投票

Try the html format for the names.
headers = {'Depth | (m)','Thickness|(m)',' Velocity | (m/sec)','Unit Weight<br>... (kN) m<sup>3</sup>',' | PI',' | OCR','','Minimum Vs | (m/sec)','','Maximum Vs |... (m/sec)','Sigma (ln) | Velcity'};

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

質問済み:

2013 年 3 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by