Sometimes you need to run a Matlab program which takes several days to finish. In some instances the user may not have control over when the computer will sleep by default.
This program moves the computer mouse by a small increment every 60 s keeping the computer awake.
Cite As
Jack (2026). SleepNo.m (https://www.mathworks.com/matlabcentral/fileexchange/68481-sleepno-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Electromechanical in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
