Workspace does not save when program runs overnight?

Hi everyone,
I am doing a scientific research and I wrote a Matlab simulation program that takes many hours to compute. At the end of the computation, the code is supposed to save the variables in a .mat file. I am using a lab computer. When I am at work (i.e. using the pc), everything is fine and the workspace get saved correctly. However, since it's a lab computer, the pc tries to log out when I am not there. When Matlab is running, it prevents the pc from logging out, so it should be fine (I know it should be fine because it once tried to logout when I was still at work but the variables got saved). However, when I try to run the code overnight or over the weekend, I come back to work with no variables saved (there is no saved .mat file). What could be the cause of the problem? I am sure it has to do with the logging out thing, but I cannot figure out a way to solve it. Unfortunately I cannot change the settings of the computer because I do not have admin privileges. Any ideas?
Thank you!

 采纳的回答

You are supposed to work with this computer. So if you need changes with admin privileges, ask your admin.
Maybe the computer is restarted automatically, or an update of the operating system forces the computer to restart. Ask your admin for details.

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

版本

R2016a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by