MATLAB: I need help with uitable in gui

guiguideuitable

Hi I need to know how to transfer data between two uitables in MATLAB like this: Select cell from table1 one then click push button then generate new row in table 2 consists data of the selected row in table 1 Also I need to know how I can delete data of selected row in uitable using push button

Best Answer

You need to configure a uitable CellSelectionCallback . When the callback fires, the second parameter will be a structure that contains the indices of the cells that are selected. You do not need to act on the information immediately, but you might need to record it for later use.
To get the selected cells after that requires using Java methods that are undocumented by Mathworks and which are being changed. You can find those described at undocumentedmatlab.com