This question already has an answer here:
My answer to How to modify uitable cell color according to data in table (in Matlab)? was deleted.
I believe this is an error. In my answer I provided a link to a website article that I had just posted which directly answers the OP's question, in a very extensive manner, much more than the other posted answer to the question. The website that I referred to (UndocumentedMatlab.com) is the de-facto go-to resource for all such undocumented aspects in the Matlab language.
Such a cross-link enriches the discussion and provides readers with additional valuable information.