uitable with logical cell (checkbox)
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hu
am 10 Dez. 2013
Kommentiert: Walter Roberson
am 11 Dez. 2013
Hi,
How can I know which rows in a uitable with logical cell (checkbox) were selected (upon clicking a button)?
Thanks.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Dez. 2013
get() the Data property of the table and examine the respective cells.
6 Kommentare
Walter Roberson
am 11 Dez. 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{:});
find(logical_vec)
You should now see that 1 and 4 are not in the list.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!