I have a problem regarding the access to check boxes within Matlab uitable.I have a table in Matlab GUI that has a column of check boxes. I want to open a particular pdf file when a check box is clicked. But I can't find callback of the check boxes within the uitable. Hope the problem is statement is clear.
thanks in advance, Abhirup
Create your own
CellEditcallback
for your table.Take the following example:
Set a breakpoint in the
boxchecked
function and look at the data given to you byeventdata
(see also the general callback documentation). Three important fields are theIndices
field, which gives you the cell that was edited and caused the callback to execute, and thePreviousData
andNewData
fields, which give you the before and after values of the edited cell.You'll also want to check to see whether or not the edited cell is a checkbox (
CellEditCallback
executes on any change to a cell in a table). Based on this data, decide what action(s) you want to take.