User`s manual
2 Creating C Language MEX-Files
2-46
mex myCmexFile.c <matlab>/extern/examples/refbook/fort.c
-I<matlab>/extern/examples/refbook
Example – Symmetric Indefinite Factorization Using LAPACK
You will find an example C MEX-file that calls two LAPACK functions in the
directory
<matlab>/extern/examples/refbook, where <matlab> stands for the
MATLAB root directory. There are two versions of this file:
•
utdu_slv.c – calls functions zhesvx and dsysvx, and thus is compatible with
the PC, HP, and IBM platforms.
•
utdu_slv_.c – calls functions zhesvx_ and dsysvx_, and thus is compatible
with the SGI, LINUX, Solaris, and Alpha platforms.