- Copy the below code and save it with any name and extension as .bat .
- When you need to run MATLAB execute the file you have created.
- After the activation is complete, the application can run with original time. So the script pauses for 60 sec after starting the application and then restores the actual time. This allows you to use internet while using MATLAB. But depending on different system, the time to start MATLAB may vary.
So you can change the code accordingly, by changing the line 47 if requiredtimeout /t [time in sec]
.
- Keep the file in your matlab project folder and add the folder to the path.