Matlab Startup and insilsation
2 次查看(过去 30 天)
显示 更早的评论
Hi I’m trying to find a way of starting up a script when Matlab opens but after initialisation. I’m trying to run a script that controls some test equipment. If a power cut happens a UPS controls the application to turn off sensibly. Once power is regained to the computer it auto starts again opens up matlab and runs the Startup script that calls the Application I have created. In doing this I’m getting a fatal error which I think is occurring because the application is called before Matlab has finished initialisation. Is there a way to run the code with a delay to allow matlab to initialise?
0 个评论
回答(1 个)
ES
2017-3-9
matlabrc is the script that gets called after MATLAB starts.
This will be available in for example "C:\Programme\Matlab\R2011b\toolbox\local\matlabrc.m"
Call your script at the end of the matlabrc.m.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!