MATLAB: Has a new MATLAB task been added to the Windows Task Scheduler
MATLAB
Upon completing an installation of MATLAB R2011b a new "MATLAB R2011b Startup Accelerator" task was added to the Windows Task Scheduler.
Best Answer
MATLAB R2011b and later includes a MATLAB Startup Accelerator utility to speed up MATLAB startup. The MATLAB installer configures this utility as a scheduled task on your computer that runs several times each day.
NOTE: The scheduled task is not a running process and will not consume system resources.
By default the startup accelerator runs at 8:00am and 1:00pm every day and anytime you logon to your computer. While no modification is required, the startup accelerator works best if coordinated with your particular MATLAB usage. To take full advantage of the startup accelerator, you should schedule it to run at a time just before you typically start MATLAB.
The Windows Task Scheduler is used to modify the default configuration. You can access the Windows Task Scheduler via the Windows Control Panel, under Administrative Tools. Using task triggers you can customize when the startup accelerator runs. You can also add triggers, delete triggers, or delete the startup accelerator task completely.
Installing the MATLAB Startup Accelerator on a Network Client
System:
1. Install MathWorks products on your server.
2. Share the network location of the startup accelerator configuration
utility with network clients. The startup accelerator configuration utility is named InstallMATLABStartupAccelerator.exe and is located in the $MATLAB/bin/win32|64 (where $MATLAB is the root installation location) folder.
3. On each client system, run the startup accelerator configuration utility.
This utility adds the MATLAB Startup Accelerator as a scheduled task on the client computer. By default, the task is scheduled to run at 8:00am, 1:00pm, and at logon. These settings can be changed using the Windows Task Scheduler.
As given in the link below, navigate to $matlabroot/bin/win64(or 32) folder and run the application "InstallMATLABStartupAccelerator" present there. '$matlabroot' is the folder containing the root installation of MATLAB, and can be found out by executing the command given below at the MATLAB Command Window:
You can use this call to start the function "YourFcn", wait for 10 seconds and close Matlab afterwards:
matlab -r "YourFcn; pause(10); exit"
This call can be used in Window's Task Schedular.
Another idea would be to add theexit to the function.
The TimerFcn can run scripts. Simply insert the script name as String as the TimerFcn. But I bet, Matlab will not stay open all the time. The Task Schedular of the operating system is more reliable.
Best Answer