compile the C++ file
output - output location for the mex
source - filename for source C++ files
include - the list of directories to search for #include
o = setField(o, source) For each field of o such that it is a field in source, we set o.(field) = source.(field)