1.2.5. Can a C or FORTRAN subroutine be called directly
from MATLAB?
Yes, using "MEX-files." MATLAB's MEX-file facility allows any C or
FORTRAN subroutine to be called directly from MATLAB. The MEX-file
facility dynamically links your C or FORTRAN subroutine to the
MATLAB program at run time.