script stops running after closing connection to remote computer
显示 更早的评论
Hi,
My Matlab script stops running whenever I disconnect from the remote machine that I'm running the script on. When I re-open the remote connection, Matlab starts running again.
I'm running Matlab 2019a on a MacPro running Windows 10. I log into the MacPro using Microsoft Remote Desktop.
Any ideas on how to troubleshoot or solve this problem?
Thanks, in advance!
1 个评论
Walter Roberson
2019-7-30
Are you connecting to a server, or are you connecting to a desktop machine that has its own display?
What you describe would not surprise me if you are connecting to a server, as the graphics needs to go somewhere.
回答(2 个)
James
2019-7-30
0 个投票
1 个评论
Walter Roberson
2019-7-31
Did you happen to restart MATLAB (and possibly reboot) since the time you removed the monitor ?
James
2019-8-1
0 个投票
1 个评论
Walter Roberson
2019-8-1
If you happen to have the parallel computing toolbox, then parfeval or use other parallel computing tools to run the code in a worker. The workers will not have access to the display and will not expect access. You can savefig or saveas or print() inside the worker and later load the file elsewhere.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!