This error indicates that you have multiple installations of MATLAB on your computer. When the executable is running, the system is attempting to link against the DLL corresponding to an older version of MATLAB, thus resulting in this error.
To resolve this problem, change your system path variable such that $MATLAB\bin\win32 corresponding to the later MATLAB release or MATLAB Math and Graphics Run-Time Libraries appears first on the system path. Here, $MATLAB is the MATLAB root directory on your machine, as returned by typing
at the MATLAB Command Prompt.
For information on setting your path please see the Related Solutions section.
Moreover, in order to run the Engine application on Windows, you need to have MATLAB registered as a COM server. This registration is part of the MATLAB installation process and should have already been done for you as part of the install. If, for some reason, the registration was not successful, you may see the following error displayed when you try to run this example:
Can't start MATLAB engine
If you see this error, you will need to manually register MATLAB as a COM server by entering the following commands in a DOS command window:
cd $MATLAB\bin\win32
matlab /regserver
Best Answer