% Taken from MATLAB Help: load chirp y1 = y; Fs1 = Fs; load gong; wavplay(y1,Fs1,'sync') % The chirp signal finishes before the wavplay(y,Fs) % gong signal begins playing. % get help on WAVPLAY for more functions % you can actually record wave files in MATLAB!