MWrap is an interface generation system in the spirit of SWIG or matwrap. From a set of augmented Octave/MATLAB script files, MWrap will generate a MEX gateway to desired C/C++ function calls and Octave/MATLAB function files to access that gateway. The details of converting to and from Octave/MATLAB's data structures, and of allocating and freeing temporary storage, are hidden from the user.