To be more specific: When I launch the actual matlab exe (in the bin/win64 directory and NOT the wrapper in the bin directory) from cygwin with:
> /cygdrive/c/Program\ Files/MATLAB/R2012a/bin/win64/MATLAB.exe I get: >> mexjulia ans = Hello, from julia! But it doesn't work if I launch the bin/matlab.exe wrapper or if I launch from the windows command prompt.
