Use xMat with MATLAB
To run the xMat from MATLAB, it has to be compiled as a MEX file first. From within MATLAB using GCC this can be done with
mex 'COMPFLAGS="$COMPFLAGS -ffree-form -cpp"' -largeArrayDims -DMATLAB_CALLING xmat.f
delete *.mod;
for Linux with GCC or from Windows with Intel compiler similar to
mex '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