Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pause Matlab without breakpoint

Tags:

matlab

I have a script that is running a lot more time than I expected, it has been running for the last 3 days and only achieved 55% progress.

I would be perfectly happy to stop it at about 67% (I can live without the remaining 33%) But If I stop it now (ctrl+c or ctlr+break), I will lose all the data.

So is there a way to pause Matlab, perhaps into debug mode so I can check the variables without losing data?

like image 548
Don Avatar asked May 26 '15 07:05

Don


1 Answers

The command (needs to be input manually before you start your function!)

dbstop if error

should catch a ctrl-c and leave you in debug mode.

like image 127
bdecaf Avatar answered Nov 14 '22 03:11

bdecaf