Note: because antivirus is typically a Windows issue, this article is written only for Windows.
How to Detect Antivirus Interference
Some ways to see if antivirus might be creating the performance problems you observe in MATLAB and Simulink:
- Open Resource Monitor or Task Manager and observe processes that show high CPU usage as you reproduce the slow behavior in MATLAB and Simulink. If you see the CPU usage of an antivirus program spike, that could be evidence of interference.
- Start Windows in "Safe Mode with Networking". This will reduce any programs being run at startup, typically including antivirus. Open MATLAB, if the problem is fixed, then antivirus is likely to be a cause.
- If you still have trouble decerning if a slowdown is antivirus related, consider reaching out to MathWorks Technical Support.
How to Prevent Antivirus Interference
Most antivirus software has a concept of an "exclusion list" or something similar. If it is acceptable to you and your company's IT policies, it may help performance to add the following to the exclusion list:
- The MATLAB executable (MATLAB.exe)
- "MATLAB Root" folder.
- The MATLABWebUI executable (MATLABWebUI.exe)
You can locate the "MATLAB Root" folder with the following command:
The MATLAB.exe executable is in the "bin" folder of the "MATLAB Root" folder. The MATLABWebUI.exe is in the "\bin\win64" folder of the "MATLAB Root" folder.
If you are unable to do this or if this does not have the desired effect, consider contacting your IT department or the antivirus software vendor for assistance.