Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Matlab support undo deletion for the codes

Tags:

undo

matlab

I'm just going to ask for a really basic question on Matlab which bugs me often when using Matlab.

I sometimes, by accident, delete some chunk of my codes when using Matlab; however, there seems to be no way to undo the deletion or recover those chunks back from my codes.

Is there an undo button or short-cut for deletion of codes?

It's not really a big deal if I cant remember those chunk and write again, but it just seems like a tedious work to do again.

like image 889
dnTosh Avatar asked Jan 07 '23 11:01

dnTosh


2 Answers

The undo button is on the little toolbar in the top-right corner: enter image description here

Or you can use Ctrl-Z if you are using the Windows shortcuts.

like image 80
Dima Avatar answered Jan 15 '23 00:01

Dima


You could use a source control system (SCM) like git (git-scm.com) to make backups of your code code.

Note: you need to save in between and then add them to your SCM. Or you could do backups automatically with a cron job.

like image 28
Hauke Avatar answered Jan 15 '23 00:01

Hauke