UITable color for value
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (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);
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!