MATLAB Answers

How can I copy values from UITABLE placed in UIFIGURE to clipboard?

79 ビュー (過去 30 日間)
nemanjahrane
nemanjahrane 2017 年 11 月 9 日
コメント済み: gaoyi guo 2020 年 10 月 21 日
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.

採用された回答

Achyutha Hosahalli
Achyutha Hosahalli 2017 年 11 月 21 日
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
  2 件のコメント
gaoyi guo
gaoyi guo 2020 年 10 月 21 日
Is it possible to copy the data in uitable with the format retained?The Clipboard Fcn seems unable to achieve the goal.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by