Copy and paste not working after update?

757 views (last 30 days)
Ella Feldmann
Ella Feldmann on 20 Jan 2017
Commented: Jingxi Weng on 6 May 2022 at 20:43
Hi, I think my matlab updated to the latest version this morning. Now the copy and paste functions wont work from other applications to matlab. Copy and paste still work between scripts in matlab. How can I change the settings back to what they were before?

Answers (5)

Frank on 20 Feb 2022
I have been having this same problem with 2021b. It seems not to happen after just opening matlab but starts after a time (not more than 20ish minutes). I can close matlab and restart and that seems to work for a short while also. I checked my keyboard shortcuts preferences settings and Windows is selected not emacs. Plus it is not just the Ctrl+C, Ctrl+V (i.e. the shortcuts) that are not working but the "copy" and "paste" options are not in dark font in the right-click pop up menu, and are not selectable, regardless of whether there is anything in the clip/copy memory. I have found one workaround that seems to be working without fail, but it is still annoying. I found that if I have copied something that I want to paste into a function, I can open up a new script, which allows me to paste into the new script. Then if I copy from the new script I can paste that back into the function where I had wanted to paste it in the first place. Curious. Not monumentally disastrous, but definitely annoying.
Jingxi Weng
Jingxi Weng on 6 May 2022 at 20:43
+1, so annoying, I am also using 2021b. I have to open a new editor and paste there.

Sign in to comment.

Philippe Lebel
Philippe Lebel on 27 Dec 2018
Edited: Philippe Lebel on 27 Dec 2018
this will maybe seem redundant, but for precision of answer:
the path to change the keyboard setting in order to allow copy-paste as mentionned in Ed's post is:
HOME -- > Preferences --> MATLAB --> Keyboard --> Shortcuts.

Ed Marquez
Ed Marquez on 26 Jan 2017
The keyboard short-cuts for Copy (Ctrl+C) and Paste (Ctrl+V) may not work if the "Editor/debugger key bindings" preference is set to "Emacs" instead of "Windows". This may be worth checking for your MATLAB.
In order to check the MATLAB Keyboard preferences File -- > Preferences --> Keyboard --> Shortcuts. If the "Active Settings" option is set to "Emacs", the Copy (Ctrl+C) and Paste (Ctrl+V) features will be disabled. To enable these features, change the "Editor/debugger key bindings" option to "Windows" and click on the "Apply" button in the right bottom corner of the "Preferences" window.
amin ya
amin ya on 30 Dec 2018
Same here. Restart helps but annoying.

Sign in to comment.

Image Analyst
Image Analyst on 9 Mar 2022
I've found that every 3 or 4 days with r2021b, paste won't work in the editor. I can paste to the command window and other places outside MATLAB, but not into the command window. Restarting MATLAB seems to fix it.

McG on 18 Mar 2022
I have the same problem both with R2021b update 3 and R2022a. Sometimes, but I don't know exactely when and why, paste command doesn't work. After restarting matlab everything starts to works again for undefined time (1 minute, 1 hour, 1 day...).
Image Analyst
Image Analyst on 22 Mar 2022
@Leonidas Mavroudakis The previous version is not free of bugs. Every large complicated software has bugs. Even Microsoft, HP, Oracle, Apple, Google, Facebook, etc. have bugs in their software. As versions progress, old bugs get fixed, but unfortunately new bugs get introduced (though mostly in newly-added functionality).
For a list of known bugs in MATLAB and Simulink, go here:

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by