f = shape; Column name = {'x', 'y'}; Selection = {'A', 'B', 'C', 'D', 'E'} [Wales {1: Number (Selection), 1}] = Deal (Wrong Columns) == 'Logical', 'Logical' '}; T = utility ('data', 'wal', column name ', column names,' column formom ', column form,' column idit ', [true true truth],' roanam ', selection);
If you run this script, it should remove a figure, but I can select only the checkbox in the X column of the table. Why is this?
because variables vals
have enough data to fill the table .
Simply make it a 2-column array to repeat and it works. I.e., add this line: before making table
vals = [vals vals]
.
The whole code:
f = shape; Close all the clear column names = {'x', 'y'}; Selection = {'A', 'B', 'C', 'D', 'E'} [Wall (1: Number) (Selection), 1}] = Deal (Wrong); Vals = [vals vals] column form = {'logical', 'logical'}; T = UTF ('data', 'wal', column name ', column name,' column format ', column form,' ro name ', selection,' column edit ', true (1,2 * size (selection, 1)); > Output:
Edit: In order to get the index of selected cells, you do not have to add new variables especially. < P> cell selection callback
You can bring a direct index.
Assume that you After creating Lika, this line combines:
set (t, 'cell selection callback', @ selcb) then use the function to function Can be done in the following way:
function SLC (~, event) selected seals = event index and
each time When a cell is selected / deselected, one 1x2 element will produce vector.
No comments:
Post a Comment