readtable() and set the table itself as the Data property of a uitable() .
Use a CellSelectionCallback https://www.mathworks.com/help/matlab/ref/matlab.ui.control.tableappd-properties.html#bvboy7l-1-CellSelectionCallback to get a callback when the user clicks on the table.