MATLAB code for Audapter