Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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!

share|improve this question
    
You might be better off asking this on Stack Overflow. Either way, we'd need some more information on how your simulation is set up. –  Kevin Chen Jan 7 '13 at 7:40

3 Answers 3

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:

sudo lsof | grep matlab

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. And grep 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 of top 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 the T 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.

share|improve this answer

I don't know much about matlab – but could relaunching the finder also be an idea? …or have you tried that already?

share|improve this answer

Unfortunately, if matlab hangs, you can't recover it. Maybe you could force launch a second instance of matlab. Maybe it can recover your simulation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.