Click wave_rect.m link to view the file.