MATLAB: UiTable HTML not working

app designerMATLABuitable

Hello everyone.
I'm tring to change the background of the cells of my UItable.
I have this code to do so:
Capturar.PNG
And the result is this:
c2.PNG
But if I do this:
uitable('data',data)
it pops a new window with this table:
Capturar.PNG
That is what I want, but I want in the windows form.
Does anybody know how to fix my problem?
Thanks.

Best Answer

Coloring cells in uitables made with app designer works completely different than it does for other UItables. HTML in general does not work for uitables made with app designer.
It is possible to color cells in uitables made in app designer in 2019b and forward, but not in 2019a: https://se.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd.addstyle.html
For 2019a, you can color entire cell rows, but not individual cells.