I've just run a very long Matlab simulation on my Mac Book Air. It uses Mac OSX. The simulation has practically finished, but seconds before the end, Matlab appeared in the activity monitor as not responding.
I really do not want to loose all the simulation data that has taken me so long to obtain. Is there a way of relaunching the application without quitting ? Or any way to get the data that has already been calculated ?
Please help!
Best Answer
Regardless of how important the process is, if it’s hung it’s hung. Quitting the finder is one way to see if you can recover it. Quitting all open applications is anther suggestion.
I would recommend opening up a
terminal
window and typing the following to see if you get any clues:lsof
is a Unix command that basically means “list open files”. The|
next to that is a pipe command which basically means output should be processed by the command to the immediate right. Andgrep
basically filters out the output based on criteria. In this case,matlab
itself.If you run that it should list all open files which also means connected processes. If you are not used to the
terminal
output this could be overwhelming, but looking through the output line by line might reveal something.And if you are up for it, I would recommend installing
htop
in OS X. It’s a very nice and—in my opinion—more useful version oftop
which shows all system basics in a live updated screen. Installing in not easy and might require Xcode, but once up and running it will help you further debug things.For example, if you can start
htop
and then hit theT
key to show all processes in threaded mode. Meaning you can then see all the child processes connected to matlab and get more clues there.