%% Remove All Styles from Table
% First, add two styles to a table UI component.

fig = uifigure; 
fig.Position = [500 500 520 220];

uit = uitable(fig); 
uit.Data = rand(5); 
uit.Position = [20 30 480 135];

s1 = uistyle('BackgroundColor','red');
addStyle(uit,s1,'column',3)

s2 = uistyle('BackgroundColor','yellow');
addStyle(uit,s2,'row',4)

%
%
% Then, remove both styles to revert the table UI component back to its default appearance.

removeStyle(uit)

%
% Copyright 2019 The MathWorks, Inc.