Lossy source coding scheme by MATLAB