%**************************************************************************
%INEL 5309 - DSP I
%Ring_tel Demo
%Prof. Domingo Rodriguez
%**************************************************************************
%******************************PARAMETER SETTINGS**************************
Fs=8192;
Ts=1/Fs;
V = 2;
t = 0:Ts:V-Ts;
Nx = V/Ts;
fa = 400;
fb = 440;
%******************************SIGNAL GENERATION******************************
x1=cos(2*pi*fb*t);
x2=cos(2*pi*fa*t);
x = x1+x2;
%******************************SOUND GENERATION*******************************
sound(x,Fs)
%******************************SIGNAL PLOT********************
tg = 0*Ts:Ts:(300-1)*Ts;
xg = x(1:300);
plot(tg,xg)
grid
xlabel('Time Axis in Seconds')
ylabel('Magnitude')
title('Segment of Ring-tel Signal')