MATLAB: How to combine signals for each digit in telephone number (dtmf) to form one continuous signal

digitsdtmfplotsignals

Hello. I have this problem: How to combine signals for each digit in telephone number (dtmf) to form one continuous signal, but each digit signal should be separated by silence period? I could manage to plot for each digit, but dont know how to combine them into one? I attached my source code. And I have to get signal like in the picture

Best Answer

Set
y = [];
silence = zeros(1,numel(time_vector);
before the for loop and then use
y = [y y_high+ y_low silence]