To resolve this issue, try the following:
1. Restart MATLAB
If you have MATLAB open, close it and then open it again.
2. End the MathWorksServiceHost processWindows
- Open Task Manager. This is often done by pressing Ctrl+Alt+Delete on your keyboard
- If you do not see tabs such as "Processes" & "Performance", select "More details" in the bottom left corner of the Window.
- Navigate to the "Details" tab near the top of the Window
- Find MathWorksServiceHost
- Highlight it and select "End Task" in the bottom right corner of the Window
MacOS
- Open the app Terminal by searching for it Spotlight Search. Spotlight Search is the magnifying glass in the top right corner of your Mac OS screen.
- Type in and run: killall MathWorksServiceHost
Linux
- Open Terminal. Doing this will vary depending on your Linux distribution
- Type in and run: killall MathWorksServiceHost
3. Uninstall and reinstall the MathWorks Service HostFollow the directions from the link below to uninstall and reinstall the MathWorks Service Host.
How do I uninstall and reinstall the MathWorks Service Host?
4. Check for Operating System updatesThere may be an issue with your operating system's libraries. Check your operating system for updates, then download and install those updates.
5. Check computer for virusesThere may be malicious software on your computer that is preventing MATLAB from behaving correctly. You may need to repair your system before MATLAB can be used.
6. Disable antivirus softwareIf your antivirus software has not been able to find any malicious software, it may be what is causing MATLAB to malfunction. Try disabling it and then launching MATLAB.
If these steps do not resolve your issue, please find your Service Host log files, contact MathWorks Support, and send your log files to us. If you do not know where those files might be, please view the link below:
Where are the Installation, Activation, & Service Host log files located for MATLAB?