MATLAB Answers

copy from UITABLE to clipboard not working

74 ビュー (過去 30 日間)
Gregory McFadden
Gregory McFadden 2017 年 4 月 24 日
コメント済み: Luna 2019 年 10 月 16 日
I have a UI table, I used to be able to copy from it to the windows clipboard, but now it no longer copies. I have absolutely no idea what has changed nor where to look for the problem. Any thoughts on where the problem might be?
thanks Greg

  0 件のコメント



Gregory McFadden
Gregory McFadden 2017 年 4 月 25 日
it actually was some kind of "as currently running" issue. Restarting matlab fixed the issue.

  0 件のコメント


その他の回答 (2 件)

xi 2017 年 4 月 25 日
You may want to change the uitable property of 'ColumnEditable' from true to false. When it is true, you can edit, but can't copy the whole table to clipboard (can only copy one cell at a time). When it is false, you can't edit, but can copy the talbe. I usually add a toggle button beside the uitable, so that users can switch between copy mode and edit mode. I'm not sure if this is the problem you encountered.

  1 件のコメント

Walter Roberson
Walter Roberson 2017 年 4 月 25 日
Interesting, I did not know that.


Feng 2019 年 10 月 10 日
i also have this problem with 2019b. has anyone found a solution?

  4 件のコメント

表示 1 件の古いコメント
Feng 2019 年 10 月 11 日
This is frustrating. I have tried many different ways but still can't get around this issue...
Feng 2019 年 10 月 14 日
Matlab has confirmed the function is missing for uitable and hopefully this will be addressed in the next release. in the meantime, use clipboard for it but i won't copy the format of the table.
Luna 2019 年 10 月 16 日
I think writing our own copy to clipboard function and calling it in cellSelectionCallback will solve. But I haven't tried yet. I will give a feedback asap.




Community Treasure Hunt

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

Start Hunting!

Translated by