MATLAB: Do I receive multiple license manager error -5’s for products not on the licenses when starting MATLAB

When starting MATLAB, I receive several license manager error -5's. After clicking "OK" to each, MATLAB starts. 
When starting MATLAB, I receive several license manager errors stating:
FlexNet Licensing checkout error: No such feature exists.
Feature: Simulink
License path C:\Program Files\MATLAB\R2014b\licenses\license.dat
FlexNet Licensing error:-5,357
I do not own the products I receive the license manager errors for. After clicking "OK" to each, MATLAB starts.

Best Answer

This error can occur if you have the FLEXLM_DIAGNOSTICS environment variable set. FLEXLM_DIAGNOSTICS is a diagnostic tool that will provide verbose outputs on license checkouts requests. When starting MATLAB from an Individual or Designated Computer license, it will attempt to checkout all MathWorks products. Normally these checks are not shown. With FLEXLM_DIAGNOSTICS you will get an error -5 for each MathWorks product not on your license.
This can be resolved by deleting the FLEXLM_DIAGNOSTICS environment variable. 
Windows
1. Right-click the My Computer (or Computer) icon and select Properties.
2. In the System Properties window, go to the Advanced tab and click the Environment Variables button near the bottom.
3. Under the user variables and System variables select FLEXLM_DIAGNOSTICS and click delete.
Linux
You can remove the environment variable for a single session by running the below in terminal:
unset FLEXLM_DIAGNOSTICS