I wish to create an if statement that will check if a specific cells of a logical column inside a uitable are true or false. Therefore, how can I check the logical cell status (upon clicking a push button, not shown)?
Script:
% Table
c1 = rand(10,3);
h = uitable('Units','normalized', 'Position',[0 0 1 1], 'Data',c1);
%# add new column of check boxes to table
c2 = c1(:,1)>0.5;
set(h, 'Data',[num2cell(c1) num2cell(c2)], 'ColumnFormat',[repmat({[]},1,size(c1,2)),'logical'], 'ColumnEditable',[false(1,size(c1,2)),true])
get(h, 'Data'), just in the very same way as you're setting it in the above code. Is there a problem with that? - sebastianCellSelectionCallback, it returns the indices of row and column. In the callback funtion you then get the complete data byget(yourUItablehandle, 'Data')and adress it with the indices you got before. - Robert SeifertCellEditCallback!? - sebastian