Mex error for use in MATLAB on Windows

Hello,

I had a similar problem on a similar setup and was able to solve it using the answer from this thread.

Hope it helps!