Invalid Mex file

In particular, this thread seems to have a solution for what appears to be the problem you have