Question

In: Electrical Engineering

9.8.2 Generation of DTMF Tone Using firpm function of MATLAB, design a lowpass and a highpass...

9.8.2 Generation of DTMF Tone

Using firpm function of MATLAB, design a lowpass and a highpass filter to filter
out highpass and lowpass components of DTMF tones, respectively. Do not use very
high-order FIR filters.


1. Generate the signal for DTMF tone ’2’
2. Plot a couple of periods of the signal you generated
3. Plot the spectrum of the signal you generated, comment on the spectrum

Solutions

Expert Solution

MATLAB CODE

clc;
clear all;
symbol_matrix = {'1','2','3','A','4','5','6','B','7','8','9','C','*','0','#','D'};
low_frquency_group = [697 770 852 941]; % Low frequency group
high_frquency_group = [1209 1336 1477 1633]; % High frequency group
f = [];
for i=1:4
for j=1:4
f = [ f [low_frquency_group(i);high_frquency_group(j)] ];
end
end
Fs = 10000; % Sampling frequency `10 kHz
N = 800; % Tones of 100 ms
t = (0:N-1)/Fs; % 800 samples at Fs
pit = 2*pi*t;
tones = zeros(N,size(f,2));
for toneChoice=1:16
% Generate tone
tones(:,toneChoice) = sum(sin(f(:,toneChoice)*pit))';
% Plot tone
subplot(4,4,toneChoice),plot(t*1e3,tones(:,toneChoice));
title(['Symbol "', symbol_matrix{toneChoice},'": [',num2str(f(1,toneChoice)),',',num2str(f(2,toneChoice)),']'])
set(gca, 'Xlim', [0 25]);
ylabel('Amplitude');
  
end
set(gcf, 'Color', [1 1 1 1 ], 'Position', [1 1 1280 1024])
annotation(gcf,'textbox', 'Position',[0.38 0.96 0.45 0.026],...
'EdgeColor',[1 1 1],...
'String', '\bf Time response of each tone of the telephone pad', ...
'FitBoxToText','on');

Spectrum of whole keyboard


Related Solutions

9.8.3 Lowpass and Highpass Filters Using firpm function of MATLAB, design a lowpass and a highpass...
9.8.3 Lowpass and Highpass Filters Using firpm function of MATLAB, design a lowpass and a highpass filter to filter out highpass and lowpass components of DTMF tones, respectively. Do not use very high-order FIR filters. 1. Lowpass filter: a. Filter out the highpass component of the signal you generated through the lowpass filter designed by firpm. Note: You should use convolution not FFT b. Plot a couple of periods of the output signal c. Plot the spectrum of the output...
How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only...
How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only explain the steps of designing filter
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50....
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50. Design FIR filters with different M = 5, 10, 50, 100, 500 and plot their frequency responses H(e j?) on the same figure.
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
Design DC to AC Inverter for electric vehicles using (MATLAB/SIMULINK)
Design DC to AC Inverter for electric vehicles using (MATLAB/SIMULINK)
write a Matlab function file to solve system Ax=b by using the output of the function...
write a Matlab function file to solve system Ax=b by using the output of the function lufac2a your function should have inputs f=matrix return from lufac2a, piv=array return by lufac2a and b=right hand side of your system.the only output for your system should be x guideline 1.use the column access for the matrix entries 2. do not create any other matrix in your function-get your data directly from the matrix passed into your function 3.do not use Matlab command designed...
write a matlab function for frequency analysis using DFT. the function should take as input a...
write a matlab function for frequency analysis using DFT. the function should take as input a signal, and as output the number of sinusoids and their frequencies.
Design intelligent automobile braking system using visual saliency as a property need design and matlab code....
Design intelligent automobile braking system using visual saliency as a property need design and matlab code. if you know then do or leave it for others. image processing electrica
Write a function using MATLAB that will accept a structure as an argument and return two...
Write a function using MATLAB that will accept a structure as an argument and return two cell arrays containing the names of the fields of that structure and the data types of each field. Be sure to check that the input argument is a structure, and generate an error message if it is not.
(Using Matlab) and "while" function 1.   Write a program that prompts the User for if they...
(Using Matlab) and "while" function 1.   Write a program that prompts the User for if they would like to enter a real number. If yes, prompt the User for the real number. Continue to do this until the User enters “no” to the first question. After the User enters “no”, display the average of all the numbers entered. (Using Matlab) and "while" function 2.   Write a program that prompts the User for if they would like to enter a real...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT