How to change the cell color of UITABLE in MATLAB?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Suraj Srivastava
el 19 de Feb. de 2015
Respondida: Torsion27
el 22 de Abr. de 2018
Hi,
I have uitable of 10 row and 3 columns. My 3rd column is editable. I want to change the background color of my 3rd-column.
Kindly help me out. Any suggestion is appreciated. Thank You.
1 comentario
Giorgos Papakonstantinou
el 19 de Feb. de 2015
Suraj it is nice of you to ask questions and willing to learn Matlab. However, in this forum, for the sake of politeness, we encourage people who put an effort in answering questions by accepting their answers.
In your case, I see that you have asked 8 questions and have accepted only 1 answer.
Respuesta aceptada
Giorgos Papakonstantinou
el 19 de Feb. de 2015
A minimal example is:
data = randi(100, 10, 3);
data = reshape(strtrim(cellstr(num2str(data(:)))), size(data));
data(:,3) = cellfun(@(x) ['<html><table border=0 width=400 bgcolor=#FF0000><TR><TD>' x '</TD></TR> </table></html>'], data(:,3), 'UniformOutput', false);
t = uitable('Data', data);
1 comentario
Más respuestas (1)
Torsion27
el 22 de Abr. de 2018
I have a similar problem, it would be great if u can help me with this please :)
https://de.mathworks.com/matlabcentral/answers/393866-how-can-i-change-the-color-of-the-row-uitable-when-if-0-die-farbe-der-reihe-im-iutable-soll-sic?s_tid=prof_contriblnk
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!