The documentation of MATLAB 7.7 (R2008b) mentions the following for the BackgroundColor property of a UITABLE:
Row 2 and subsequent rows of the matrix are used only if the RowStriping property is on.
and also the following at the RowStriping property:
For both BackgroundColor and ForegroundColor, the first color applies to the first row, the second color to the second row, etc.
This implies that I should be able to use more than two colors, but in fact I get an error when I try to do that:
??? Error using ==> uitable BackgroundColors must contain at least one color of the form [r g b] Error in ==> uitable at 56 thandle = builtin('uitable', varargin{:});
Best Answer