figure
h = uitable; % create uitabl
MAC={'6216', '23', 'BEC5'; '6216', '23', 'BEC5'} ; % table data as cell array (2x3)
h.Data = MAC; % set the table data
h.ColumnName = {'A', 'B', 'C'}; % change the column name
% To change the second row
figure
h = uitable; % create uitabl
MAC={'6216', '23', 'BEC5'; '6216', '23', 'BEC5'} ; % table data as cell array (2x3)
h.Data = MAC; % set the table data
h.ColumnName = {'A', 'B', 'C'}; % change the column name
h.Data(2,:)= {'C1', 'C2', 'C3'};