%% Choose a Single Table Cell
% Create a table UI component that contains a mixture of different data types. Set the ColumnEditable property so that users can edit the data in the last column.

fig = uifigure;
uit = uitable(fig);
d = {'Male',52,true;'Male',40,true;'Female',25,false};
uit.Data = d;
uit.ColumnName = {'Gender','Age','Authorized'};
uit.ColumnEditable = [false false true];

% Create an interactive test case and choose the table cell with indices (2,2).

tc = matlab.uitest.TestCase.forInteractiveUse;
tc.choose(uit,[2 2])

%
% Clear the check box in the table cell with indices (1,3).

tc.choose(uit,[1 3],false)

% Copyright 2020 The MathWorks, Inc.