Clear Filters
Clear Filters

How to keep Matlab going on a long calculation?

72 views (last 30 days)
I run simulations, some of which take on the order of 90 minutes. If I get one started and walk away to do other things, I find upon returning that the screen is dark and computation has stopped after 30 minutes or so. If I then click on the mouse and get the screen to come back, the simulation continues. I am using Windows 7 Professional on an HP laptop with an Intel I7 processor and 16 Gigs of memory. Is there a way to keep the computer running when I am not present? I am using R2015b. Thanks.

Accepted Answer

KSSV on 15 Jul 2016
Dear David Koenig... I don't think you have to change any settings in MATLAB. Your computer is going to sleep...check power options and change the sleep setting there.....
  1 Comment
Noah Stam
Noah Stam on 3 Apr 2021
I come across similar problem (only my calculations take in the order of 10 hours). I made sure my pc wouldn't update overnight and that my pc wouldn't go to sleep. This morning I woke up and the matlab window as gone...

Sign in to comment.

More Answers (0)


Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!