Change Background Color of uitable in App Designer given different conditions?

8 ビュー (過去 30 日間)
Ash Lord
Ash Lord 2020 年 12 月 10 日
コメント済み: Ash Lord 2020 年 12 月 18 日
Hi everyone!
I'm using the app designer and trying to figure out how to change the cell color of my table given different conditions. Say, if uit.data is between 0-5 make the cells blue, if 5-10 make them yellow and 10-15 make them green. I need to do this without using uistyle for compatibility reasons.
Thanks in advance!

回答 (1 件)

Mario Malic
Mario Malic 2020 年 12 月 10 日
You could try splitting the code for different versions.
matlabVerTemp = ver('matlab');
matlabVersion = matlabVerTemp.Version;
if matlabVersion > 9
% code
else
% code
end
  5 件のコメント
Mario Malic
Mario Malic 2020 年 12 月 17 日
If my answer helped you, please accept it, thanks in advance.
Ash Lord
Ash Lord 2020 年 12 月 18 日
Hmm. It helped but I am still hoping to get info on what code I can use in place of the uistyle that would change the background colors of the cells in my table. I don't want to close the thread just yet.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by