Furthermore, a new (related) issue:
in my matlab code (which I have just compiled), I call a mex c function ( [y1, y2] = fast_loops(x1, x2); ). This function was written in C, and compiled with mex. Inside the C function, I do some calculations and call a function from matlab ( mexCallMATLAB(2,lhs,1,&rhs, "ADCacquire"); ).
I have this matlab function in the same directory as the rest of the code, libraries, etc. It is a file called "ADCacquire.m" beginning with: [time signal] = ADCacquire(length)
When I run the main code from the MATLAB prompt, it works ok. However, after compiling it with mcc, and running the .EXE, the program runs with no problem until it gets to the part where fast_loops is called. Then an error is returned to the commandline:
" Error using fast_loops
Undefined function 'ADCacquire' for input arguments of type 'double'. "
Do you have any idea on why it is not locating the function, and how can I solve this?