6.5 Mexfiles

The directories under SCIDIR/examples/mexfiles contain some examples of Matlab mexfiles which can be used as interfaces in the Scilab environment. The Scilab mexlib library emulates the most commonly used Matlab mxfunctions such as mxGetM, mxGetPr, mxGetIr etc. Not all the mxfunctions are available but standard mexfiles which make use of matrices (possibly sparse), character strings and n-dimensional arrays can be used without any modification in the Scilab environment.