For examples using these library functions, see Table of MEX File Source Code Files.
MEX File Creation API
MATLAB Engine API for C, C++, and Fortran
MAT-File API
C/C++ Matrix Library API