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

조회 수: 5 (최근 30일)
Scott
Scott 2013년 3월 22일
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일
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'};

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by