The matlab code files for echo generation