Implement code to determine the frequency components, MATLAB Programming

Assignment Help:

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 https://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).


Related Discussions:- Implement code to determine the frequency components

How to start working with simpower, How to Start Working withSimpower: ...

How to Start Working withSimpower: 1. In the Simulink screen, open a new "Model" (File àNewà Model), name it and save it. 2. Expand the SimPowerSystems library, select and

Solve for unknowns x and y from equations, Solve for unknowns 'x' and 'y' f...

Solve for unknowns 'x' and 'y' from Equations (1) and (2) using MATLAB. (However, if MATLAB is not the appropriate software to solve these two simultaneous equations, please sugges

Characters and encoding, Characters and Encoding: A character in a MAT...

Characters and Encoding: A character in a MATLAB is represented by using single quotes (example, 'a' or 'x'). The quotes are essential to denote a character; without them, the

Various commands for get the help, Various commands for get the help: T...

Various commands for get the help: There are various commands which can serve as an introduction to MATLAB and allow you to get the help: info will show contact informatio

Stacked bar chart, A file houseafford.dat stores on its three lines years, ...

A file houseafford.dat stores on its three lines years, median incomes and median home prices for a city. The dollar amounts are in thousands. For example, it might look like this:

Creating matrix variables- arguments , Creating matrix variables- arguments...

Creating matrix variables- arguments: The CAT arguments dimensions are not reliable. The Iterators can also be used for the values on the rows by using the colon operator;

Gaussian elimination, Diary Files: Before doing this assignment, please rea...

Diary Files: Before doing this assignment, please read the document Notes on Matlab Assignments (available from the course web page). It describes how to record the results of your

Create matlab program, Create MATLAB program(s) that solve a problem of you...

Create MATLAB program(s) that solve a problem of your own choice. You may opt to solve work related problem, an industrial problem, or problem from your research project. Markin

Find the value of delta equation, Solve the optimality condition for each P...

Solve the optimality condition for each P equation against M according to the following relation: Condition for Optimality:         ∇ M = λ ∇ P      with respect to C and T.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd