User`s manual
2 Creating C Language MEX-Files
2-50
5 When MATLAB starts, in the command window change directories to where
your MEX-file resides and run your MEX-file. If a message similar to the
following appears, ignore the message and click
OK.
LDR: Automatic DLL Relocation in matlab.exe
LDR: DLL filename.dll base <number> relocated due to collision
with matlab.exe
6 Open the file you want to debug and set breakpoints in the source code.