0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 1 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 1 0 0 1
0 1 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 1
0 0 0 1 1
0 0 0 1 1
0 0 0 1 1
0 0 0 1 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 0
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 1 0 1
0 0 1 0 1
0 0 1 0 1
0 0 1 0 1
0 0 1 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
0 0 0 0 1
I have a table whose empty cells are marked with the number 1. I want to color the empty cells in appdesigner the table.
Thank you for helping me

댓글 수: 4

Jon
Jon 2022년 7월 22일
I don't think there is anything built in to MATLAB that allows setting the background color of individual cells. There are a lot of ways around this using Java and HTML. See for instance https://undocumentedmatlab.com/articles/uitable-cell-colors/
Amir Azadeh Ranjbar
Amir Azadeh Ranjbar 2022년 7월 22일
I have no Java language skills.
Thank you for your guidance
Jon
Jon 2022년 7월 22일
If you haven't already please look at the link I sent. Note that you don't need to know much about Java, you can import Java functions into MATLAB and then just use them like ordinary MATLAB functions.
Jon
Jon 2022년 7월 22일
Still, if anyone has a way of changing the colors of individual cells in a App Designer UITable, purely with MATLAB that would be great! Hopefully someone either has such a solution, or can definitively say that it is not possible without resorting to Java or other external functionality.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2022년 7월 22일

0 개 추천

Perhaps you can colorize the values doing something like Steve does here:
or here:
You'd have to adapt it of course. I'm not going to do that for you even though your programming skills are elementary - I just don't have the time. But good luck (if it's something you might be able to use).

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2022년 7월 22일

답변:

2022년 7월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by