MATLAB: How to copy values from UITABLE placed in UIFIGURE to clipboard

guiuifigureuitable

I created matlab application using App Designer and it contains uitable. I am trying to copy selected values from the table to Excel using CTRL + C command. It worked with uitable created using GUIDE.

Best Answer

App Designer uitable does not support copy and paste to clipboard in both R2017a and R2017b. As a workaround, one can use the following method:
  1. Use clipboard function inside UITableCellSelection, note that this would not retain table format when paste the data to excel or notepad etc;
  2. Use a button, and call functions like xlswrite or writetable inside the button callback