Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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

Asked by Scott

Scott (view profile)

on 22 Mar 2013
 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.

0 Comments

Scott

Scott (view profile)

Products

1 Answer

Answer by Jing

Jing (view profile)

on 29 Mar 2013

Try the html format for the names.

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

0 Comments

Jing

Jing (view profile)

Contact us