mex 'COMPFLAGS="$COMPFLAGS -ffree-form -cpp"' -largeArrayDims -DMATLAB_CALLING xmat.f
delete *.mod;
for Linux with GCC or from Windows with Intel compiler similar tomex 'COMPFLAGS="$COMPFLAGS /free /fpp"' -largeArrayDims -DMATLAB_CALLING xmat.f
delete *.mod;
Please note, that for compilation the macro MATLAB_CALLING
has to be defined next to the flags for free format and preprocessing (as shown).After successfully compiling the xMat to a MEX file, it should be possible to use the xMat from the provided scripts by simply running the scripts in MATLAB.
Linked files