Copy and paste not working in the MATLAB editor?

Illustration
Ella Feldmann - 2023-11-03T09:53:58+00:00
Question: Copy and paste not working in the MATLAB editor?

Hi, I think my MATLAB updated to the latest version this morning. Now the copy and paste functions don't work. Copying from other applications and pasting into MATLAB doesn't work. Copy and paste still works in other programs, but I can't paste into the MATLAB editor window.  

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

Same problem in 2022a. Works again after closing & reopening the file in the MATLAB editor. No restart needed.
  • The Windows keyboard shortcuts are indeed enabled for CTRL+C and CTRL+V. Not the problem.
  • It doesn't work using keyboard shortcuts, nor menu selection. It is beyond the keyboard shortcuts.
  • I can generally paste what I copy to other files in other editors, ... just not to any file in the MATLAB editor.
  • When I close and reopen the file I'm working with then it seems to work fine.
  • Once I close & reopen just one file, ... issue seems to go away for all files.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!