I am running Matlab4.2 on PC. I am trying to use the cmex.bat file to compile 'c' files in to MEX files. The 'c' compiler I have is the the shareware EMX-with-GCC version 2.7. But the cmex.bat file does not have a compiler option for EMX. Does any body how I can modify the cmex.bat file so that I can compile 'c' files in to mex files?