Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DTMF Dial Function In the class you were given the first part of the function named dtmf.m to implement a DTMF dialer based on the
DTMF Dial Function In the class you were given the first part of the function named "dtmf.m" to implement a DTMF dialer based on the frequency table defined in Figure 1. Figure 2 is the skeleton of the function presented in the class Row/Column 4 1209Hz 1336Hz1477Hz1633Hz 1 697Hz 2 770Hz 3 852Hz 4 941Hz 4 Figure 1: DTMF Frequency Table function xx=dtmfdial (keyNames, fs) %DTMFDIAL Create signal vector of DTMF tones that will dial a Touch Tone telephone. %usage: xx=dtmfdial (keyNames, f3) keyNames . character string with valid key names fs- sampling frequency xx= signal vector that is the concatenation of DTMF tones 10 11-dtmf.keys-.. 13 14-ff rows [697: 770: 852: 941: 15dtmf.colTones ones (4,1)ff cols: 16- dtmf. rowTones=ff rows* nes (1,4) ; ff_cols-[1209, 1336, 1477, 16331: Figure 2: First part of the dtmf.m (a DTMF phone dialer) Complete this function with additional lines of code so that it implements the following 1. The input to the function is a vector of characters, each one being equal to one of the key names on the telephone. ( The MATLAB structure called dtmf contains the key names in the field dtmf.keys which is a 4 4 array that corresponds exactly to the keyboard layout in Fig.1) DTMF Dial Function In the class you were given the first part of the function named "dtmf.m" to implement a DTMF dialer based on the frequency table defined in Figure 1. Figure 2 is the skeleton of the function presented in the class Row/Column 4 1209Hz 1336Hz1477Hz1633Hz 1 697Hz 2 770Hz 3 852Hz 4 941Hz 4 Figure 1: DTMF Frequency Table function xx=dtmfdial (keyNames, fs) %DTMFDIAL Create signal vector of DTMF tones that will dial a Touch Tone telephone. %usage: xx=dtmfdial (keyNames, f3) keyNames . character string with valid key names fs- sampling frequency xx= signal vector that is the concatenation of DTMF tones 10 11-dtmf.keys-.. 13 14-ff rows [697: 770: 852: 941: 15dtmf.colTones ones (4,1)ff cols: 16- dtmf. rowTones=ff rows* nes (1,4) ; ff_cols-[1209, 1336, 1477, 16331: Figure 2: First part of the dtmf.m (a DTMF phone dialer) Complete this function with additional lines of code so that it implements the following 1. The input to the function is a vector of characters, each one being equal to one of the key names on the telephone. ( The MATLAB structure called dtmf contains the key names in the field dtmf.keys which is a 4 4 array that corresponds exactly to the keyboard layout in Fig.1)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started