Matlab slows down when sleeping
12 views (last 30 days)
Show older comments
Im running a program with thousands of iterations. Last night I was doing other stuff with my computer and the program did 4 or 5 cicles of these iterations in one hour or so. After that, I left the program running the whole night, and when I woke up it did barely seven and a half cicles. So, in something like 12 hours (in "standby" or whatever is called) it did the same job as in 1 or 2 hours no-standby. My question is, what is slowing down the process? If I deactivate the windows standby option it would work? And, if I do that, would it be too much for my computer?
Thanks
0 Comments
Answers (1)
Star Strider
on 19 Aug 2016
There’s no way that I know of to keep computers from sleeping while they’re running MATLAB scripts. (This has come up before, including requests for a ‘sleep’ function that could be set to turn the sleep mode off and then on again when your script completes.) Your only option is to manually set it to not sleep and then set it again when you want the computer to be able to sleep. So long as your computer has good air flow, letting it run all night should not be a problem.
2 Comments
Star Strider
on 19 Aug 2016
That would be my guess. When it goes to sleep, as I understand it, everything actually stops. (There’s more to the process than that, but that’s the essence of it.)
See Also
Categories
Find more on Startup and Shutdown 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!