User`s guide

Microsoft Windows on PCs
2-23
mex -setup and select Microsoft Visual C/C++ version 5 or 6. For more
information about the add-in, see Using an Integrated Development
Environment on page 4-23.
Note The MATLAB add-in for Visual Studio does not currently work with
Microsoft Visual C/C++, Version 7.0.
MATLAB Compiler Verification
Verifying from MATLAB
Once you have verified that you can generate MEX-files on your system, you
are ready to verify that the MATLAB Compiler is correctly installed. Type the
following at the MATLAB prompt.
mcc -x invhilb
After a short delay, this command should complete and display the MATLAB
prompt. Next, at the MATLAB prompt, type
which invhilb
The which command should indicate that invhilb is now a MEX-file; it should
have created the file
invhilb.dll. Finally, at the MATLAB prompt, type
invhilb(10)
Note that this tests only the Compilers ability to make MEX-files. If you want
to create stand-alone applications or DLLs, refer to Chapter 4, Stand-Alone
Applications.
Verifying from DOS Command Prompt
To verify that the Compiler can generate C MEX-files from the DOS command
prompt, you follow a similar procedure as that used in the previous section.