I created a uitable in appdesigner and populated it with data. I want to make the font in the 4th column blue and bold. I used:
s1 = uistyle('FontWeight', 'Bold', "FontColor", [0 0 1]);
addstyle(app.tblData, s1, 'column', 4);
and even this version:
s1 = uistyle;
s1.FontWeight = 'Bold';
s1.FontColor = [0 0 1];
addstyle(app.tblData, s1, 'column', 4);
I keep getting the error: Undefined function 'addstyle' for input arguments of type 'matlab.ui.control.Table'.
The help and support pages say I can use either versions of the code above. Why do I see that error?

 채택된 답변

Sean de Wolski
Sean de Wolski 2021년 1월 15일

0 개 추천

capital S in addStyle :)

댓글 수: 1

CAM
CAM 2021년 1월 19일
편집: CAM 2021년 1월 19일
[Embarrassed]: I can't believe I missed that. Thank you for catching it. My apologies for taking your time.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

CAM
2021년 1월 15일

편집:

CAM
2021년 1월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by