UITable color for value
古いコメントを表示
I've made a easy connectfour in matlab. Is there a possibility, that when the value in a cell from the UITable is 1, to make it red ans when it's -1 to make it yellow?
the background and the foreground color need to change.
回答 (2 件)
Image Analyst
2021 年 9 月 20 日
Yes. Not sure how you're doing the display but you could make an array of circles and a colormap. Then use
imshow(yourImage, 'ColorMap', cmap);
Jan Moor
2021 年 9 月 23 日
0 投票
2 件のコメント
Jan Moor
2021 年 9 月 23 日
Image Analyst
2021 年 9 月 23 日
I don't understand it. You'd need to upload the whole app.
カテゴリ
ヘルプ センター および 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!