The following code:
if (!(ep = engOpen("\0"))) {
fprintf(stderr, "\nCan't start MATLAB engine\n");
return EXIT_FAILURE;
}
Gives:
Can't start MATLAB engine
I don’t know what is the reason … I have two versions of Matlab R2011a 64-bit, and R2010b 32-bit. I use engine lib of second version of matlab. OS windows 7 x64.
According to some topics this problem can be caused by multiple matlab versions
MATLAB Engine Windows 7 problem
but i have deleted x64 Matlab from PATH enviroment variable…
A few things to try: