Implement code to determine the frequency components, MATLAB Programming

Objectives

In the following exercises, students are required ?rstly to implement code to determine the frequency components present in a signal, and then to extract a desired signal from one which contains additional noise. The objectives addressed in this assignment are:

1. To be able to read sampled data, and extract the frequency components present (course objectives 4, 8 and 10).

2. To be able to design and implement a system to extract known information from a signal which contains random noise (course objectives 1, 5, 7 and 10). Students are expected to communicate their ?ndings and ideas in a clear and logical manner.

Background Several graphical demonstrations of algorithms and implementation examples are provided on the course web page. MATLAB is the recommended software package - students are, however, free to choose any programming language with which they are familiar in order to complete the assignments for this course. The aim of this assignment is to gain a better understanding of Fourier Transform, and to investigate a practical application of the FFT. The data files required for this assignment may be downloaded from the course website http://www.usq.edu.au/users/leis/courses/ELE3107/ELE3107.html 1. Example MATLAB code, which you may use for the purpose of the assignment, is provided on the course website. See the script wavproc.m - run it and trace through the code. Note well: you are permitted to use the fft and ifft functions in MATLAB, since they are part of the "standard" MATLAB con?guration. You are not, however, permitted to use any "toolbox" functions from MATLAB (i.e. those functions not provided as part of the standard Student Edition).

Question 1

 The audio files dial0.wav, dial1.wav, ..., dial9.wav contain telephone dial (signalling) tones for the numbers 0 through 9. Use the code provided in wavproc.m to read the .wav files. Play through the PC speakers using MATLAB's sound function.

Part (a)

Write code to calculate and plot (on screen) the Fourier Transform magnitude for each of the ten individual digits. Each number is signalled using two simultaneous tones (see the web page cited above for further information). Note that the sample rate is 8kHz. Make sure your frequency axis is correctly scaled. In your report, include:

1. Your source code listing.

2. Two representative time-domain waveforms.

3. Two representative frequency-domain waveforms.

Part (b)

Show the measured frequency components, and compare them to what was expected theoretically. Waveforms correct & plotted correctly

Question 2

This question asks you to determine a sequence of digits dialled, given only the tone-dial waveforms.

Part (a)

By reading the wave file in blocks and calculating the Fourier Transform of each block, design an algorithm and construct the code to determine the particular digit sequence dialled from the wave file alone. Test your code using the file dial 0123. The determination must be fully automatic, and must not rely on the waveforms being any particular length. That is, the user may press the phone keys for a variable length of time. In your report, include a listing of your source code, and the output of your code, clearly indicating that it has correctly determined the sequence of digits.

Part (b)

A further set of longer dial tones is provided, according to the naming convention: dialu.wav where

dialu signifies       "unknown dial sequence"

d          is a single digit signifying the unknown file number (not the digit(s) dialled)

c|n        is either "c" for "clean signal" or "n" for noisy signal

For example, dialu2c.wav is the third2 noise-free unknown dial sequence file. Note, however, that the "n" file does not correspond to the "c" file-in other words, dialu3n.wav does not necessarily contain the same digit sequence as dialu3c.wav. Firstly, listen to the sequence using a sound-playing application such as Windows Media Player. Then, test your code from the previous question for the case of a clean (noise- free) signal. For the digit "d", use the last digit of your student number. For example, if your student number is 0123456789, use the file dialu9c.wav.

In your report, include your source code show the output of your code, clearly indicating what your program has determined the sequence of digits to be.

Question 3

Repeat the previous question, but use the noise-corrupted audio file and use the second last digit of your student number

3. For example, if your student number is 098765432, use the file dialu3n.wav.

In your report, include a listing of the output of your code, clearly indicating that it has determined the sequence of digits, together with a discussion of the performance of your method in the presence of noise.

Question 4

Repeat the previous question, but this time uses all of the noise-corrupted audio files. Would you consider your algorithm to be "robust"? (That is, able to handle many different input conditions).

Posted Date: 3/1/2013 2:16:59 AM | Location : United States







Related Discussions:- Implement code to determine the frequency components, Assignment Help, Ask Question on Implement code to determine the frequency components, Get Answer, Expert's Help, Implement code to determine the frequency components Discussions

Write discussion on Implement code to determine the frequency components
Your posts are moderated
Related Questions
Problem: Consider a trapezoidal piece of polymer film as shown below. The parallel sides of the trapezoid are insulated and the temperature of the bottom and diagonal sides are f

my project is on load frequency control using FPID tuned using GA and PSO algorithm.the system is a two area system.


The pressure radiated by a column of in-phase monopole sources may be expressed as: Create a model (spreadsheet / MATLAB etc) for a 6 element column, where d=0.2m . Figure

Find the boundary between each two of the equations P1, P2, P3 by solving: P1 = P2  ,  P1 = P3  ,  P2 = P3 Plot the boundary lines on a single figure that also includes the

The natural frequencies of a fixed-fixed uniform shaft made of homogeneous material undergoing longitudinal vibration is given by rad/s, where L is the length of the bar, G is th

Printing - matrices: For matrices, the MATLAB unwinds the matrix column by column. For illustration, consider the random 2 × 3 matrix as shown below: >> mat = randint(2,3,[

giv a malab code for offline signature veification and recognition


Illustration of Input function: For illustration, >> rad = input('Enter the radius: ') Enter the radius: 5 rad = 5 If character or string input is preferred, 's' s