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!