Resize Font Column Header on uitable inside GUI
조회 수: 6 (최근 30일)
이전 댓글 표시
I have a uitable inside a GUI. I managed to change the font size of its contexts, but not of the headers, I just want to make my letters "bigger", that's it.
I know I can change the format of the contents with html format, but I could not do it with the headers.
Any ideas welcome.
Thanks in advance
Jordi
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 10월 9일
t = uitable('Data',magic(3));
set(t,'ColumnName',{'1','Hello','<h1>World</h1>'})
댓글 수: 2
Sean de Wolski
2012년 10월 9일
You could define them as variables to make it more easy to read:
hs = '<h1>' %html start
he = '</h1>' %html end
cn = {'1', 'hello', 'world'}; %original
cnh = cellfun(@(x)[hs x he],cn,'uni',false); %with html
set(t,'ColumnName',cnh) %apply
추가 답변 (2개)
Jordi Riba
2012년 10월 12일
댓글 수: 1
Sean de Wolski
2012년 10월 12일
Pleadse post this as a new question with some example code so we can reproduce it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!