I want to interface a C library with matlab with Mex-files, so I built and compiled the library, and then I wrote each mex-file and compiled too, with the help of Visual Studio. I did that for x32, and it worked fine in Matlab (x32). The problem is that I need more memory in Matlab, so I need to use Matlab (x64). I did the same process, but compiling in x64, and now I can execute this mex functions in Matlab. The problem is that, the same mex function, in Matlab x32 takes about 0.07sec, and in Matlab x64, 41 seconds. Anyone has any idea about what is failling, or what could I do for solve the problem?
Thanks in advance