Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

What do the return values from the engOpen and engOpenSingleUse functions mean when there is a failure to open MATLAB?

Asked by MathWorks Support Team on 27 Jun 2009

I am trying to use the MATLAB engine from my C application to call into MATLAB . However, my application fails to open MATLAB when I use the engOpenSingleUse function. It returns a failure code, but I cannot determine what the return value means.

0 Comments

MathWorks Support Team

Products

1 Answer

Answer by MathWorks Support Team on 27 Jun 2009
Accepted answer

There are only three return results for the engOpenSingleUse function:

 0 = success

-2 = error - second argument must be NULL

-3 = error - engOpenSingleUse failed

You should try reregistering MATLAB on those systems that it fails on, as shown here:

http://www.mathworks.com/access/helpdesk_r13/help/techdoc/apiref/engopensingleuse.shtml

For more information on the engOpenSIngleUse function, issue the following command at the MATLAB prompt:

doc engOpenSingleUse

0 Comments

MathWorks Support Team

Contact us