MATLAB code that employs a fitting algorithm and 1D DRS model