MATLAB: Can I use ubuntu to compile mexFunction and run it on windows

mexUbuntuwindows

Can I run mexw64 compiled with an ubuntu on a 64 bit Windows 7?

Best Answer

Not unless you have a compiler on Ubuntu that can produce a Windows binary. Also, you will need to get the MEX command to work with this compiler, which will involve customizing the mexopts.sh file that is used as an options file during compilation.