Compiles or recompiles given source files to a MEX function taking into account source files timestamps. Also works in Octave by switching to mkoctfile command.
name (string): Name of MEX function.
files (cell array): Array of source files.
includes (cell array): Optional array of include directories.
directory (string): Optional path of target directory.