I’m having a problem when I try to call a Matlab funcion from my C++ code.
When I call engOpen, it always returns NULL.
Here is the code:
Engine *m_pEngine;
m_pEngine = engOpen(NULL);
if(m_pEngine == NULL)
{
cout << "Error" << endl;
exit(1);
}
Does somebody know how to solve this?
Thanks !!!
If you look at the
engOpendocumentation it says:On Windows systems, engOpen opens a COM channel to MATLAB. The MATLAB software you registered during installation starts. If you did not register during installation, on the command line you can enter the command:
I’m not sure that is your problem, but it seems worth a try.