[MATLAB] Changed to mex-based wrapping