If you carefully read the discussion, you will find out that UITABLE supports HTML content ...
Here is an example:
X = rand(100,2);
%
XX = reshape(strtrim(cellstr(num2str(X(:)))), size(X));
%
idx = ( X(:,1) > X(:,2) );
%
XX(idx,1) = strcat(...
'<html><span style="color: #FF0000; font-weight: bold;">', ...
XX(idx,1), ...
'</span></html>');
%
f = figure;
h = uitable('Parent',f, 'Units','normalized', 'Position',[0.05 0.05 0.9 0.9]);
%
set(h, 'Data',XX)

source
share