MATLAB: Does starting MATLAB via the Engine interface result in an error

MATLAB

When I try to start MATLAB via the Engine interface, I get the following errors:
Can't start MATLAB Engine

Best Answer

For a controller to start MATLAB, the Windows registry needs to contain certain ActiveX entries for MATLAB. To make these entries, run MATLAB from the command line. Note that you need only do this once, unless MATLAB is moved to another location, in which case this process should be repeated.
The way to "manually" register MATLAB is to run MATLAB from the "run" option in the START button of the task bar. You must specify the path to the MATLAB executable and then issue the command "/regserver" from the DOS command prompt. For example:
C:/MATLAB/BIN/MATLAB /regserver
When MATLAB is started with the /regserver option, it starts minimized (iconified).
In order to ensure that your applications connects to MATLAB correctly, include the string returned by executing the following in MATLAB:
[matlabroot '\bin\win32']
-or-
[matlabroot '\bin\win64']
to the PATH environment variable, separating it with ';' from the existing value.
To set the PATH environment variable in a Windows system, select Start > Settings > Control Panel > System. The System Properties dialog box is displayed. Click the Advanced tab, and then the Environment Variables button.
In the System variables panel scroll down until you find the PATH or Path variable. Click this variable to highlight it, and then click the Edit button to open the Edit System Variable dialog box. At the end of the path string, enter a semicolon and then the path string returned by evaluating the expression shown above in MATLAB. Click OK in the Edit System Variable dialog box, and in all remaining dialog boxes.
After updating the PATH environment variable, restart MATLAB.