User`s guide

UNIX Workstation
2-11
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 by listing
the filename followed by the appropriate UNIX MEX-file extension. For
example, if you run the Compiler on Solaris, the Compiler creates the file
invhilb.mexsol. 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, refer to Chapter 4, Stand-Alone
Applications for additional details.
Verifying from UNIX Command Prompt
To verify that the Compiler can generate MEX-files from the UNIX command
prompt, you follow a similar procedure as that used in the previous section.
Note Before you test to see if the Compiler can generate MEX-files from the
UNIX command prompt, you may want to delete the MEX-file you created in
the previous section,
invhilb.mexsol, or whatever the extension is on your
system. That way, you can be sure your newly generated MEX-file is the result
of using the Compiler from the UNIX prompt.
Copy
invhilb.m from the <matlab>/toolbox/matlab/elmat directory to a local
directory and then type the following at the UNIX prompt:
mcc -x invhilb