필터 지우기
필터 지우기

Coloring specific uitable cells plus adding content

조회 수: 1 (최근 30일)
Eric Zhao
Eric Zhao 2017년 7월 17일
댓글: jg 2018년 2월 15일
Hi, I would like to paint the cells with negative numbers with red color and positive with green color on the DMI column. I also like to add a header to the first column, plus shorten the width of the first column. How am I supposed to do that in a coding format? Thanks!

채택된 답변

Jan
Jan 2017년 7월 17일
편집: Jan 2017년 7월 17일
See also: https://www.mathworks.com/matlabcentral/answers/25038-how-to-change-each-cell-color-in-a-uitable for coloring an uitable with HTML. The HTML trick has the disadvantage, that it appears, when you edit the cell.
Please note, that you can find this link easily, if you ask an internet serach engine for "Matlab color uitable".
  댓글 수: 2
Eric Zhao
Eric Zhao 2017년 7월 17일
Thanks!
jg
jg 2018년 2월 15일
It appears that HTML doesn't get interpreted in App Designer-based GUIs, so this solution no longer works.

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

추가 답변 (1개)

Adam
Adam 2017년 7월 17일

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by