uitable with logical cell (checkbox)

21 views (last 30 days)
How can I know which rows in a uitable with logical cell (checkbox) were selected (upon clicking a button)?

Accepted Answer

Walter Roberson
Walter Roberson on 10 Dec 2013
get() the Data property of the table and examine the respective cells.
Walter Roberson
Walter Roberson on 11 Dec 2013
foo = uitable('Data', {false;true;true;false;false}, 'ColumnEdit', true);
Now click on the last entry. Then
data = get(foo, 'Data');
logical_vec = horzcat(data{:});
You should now see that 1 and 4 are not in the list.

Sign in to comment.

More Answers (0)


Find more on Migrate GUIDE Apps in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!