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