MATLAB Answers

uitable - how to change the font name for headings

20 views (last 30 days)
Iman on 2 Jan 2014
Answered: Steven Hall on 8 May 2014
Hi everyone,
I am using "uitable" to show the final output in a table format. I can change all settings for the cells (fonts, colors, etc.) using uitable properties but I couldn't figure out how to change the settings for the headings. More specifically, I wanted to change the font for rows' headings but I couldn't. I used the following command
row_heading{i} = ['<html><br><font face="Comic Sans MS">' sprintf('%c',rnames{i}) '</font></br></html>'];
It worked, but the names occupies the whole table. I mean the cells are not visible anymore. Any suggestion would be highly appreciated.
Thanks, Iman

Answers (1)

Steven Hall
Steven Hall on 8 May 2014
Same here, this is actually what brought me into the forum.
Am I correct in thinking that this did not solve your issues either:
If someone can offer a solution/work round, very grateful to folks.



Community Treasure Hunt

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

Start Hunting!

Translated by