You are on page 1of 6

University of Southern Queensland

Faculty of Health, Engineering & Sciences


School of Mechanical & Electrical Engineering

Course Number: ELE3107

Course Name: Signal Processing

Internal Assessment No: 1 External

This Assessment carries 200 of the 1000 marks total for this Course.

Examiner:

John Leis

Moderator:

Mark Phythian

Assignment: Signals and Systems

Date Given: Date Due:

Week 1 Friday Week 8

Penalty for Late Submission: Loss of 5% of total marks for this assignment per day late.

Assignments are to be typed, not handwritten. Assignments are to be submitted electronically, using the Electronic Assignment Submission Environment (EASE) link on StudyDesk. If you are not sure how to do this, see http://www.usq.edu.au/studydesk/help/assignments/ EASE will give you a receipt on submission, which you should record. Marked assignments will be returned via the EASE system. Please use PDF format to submit your assignment. Please use the naming convention LastName-StudentNumber.pdf, where StudentNumber is your 10-digit student number, and LastName is your last (family) name. By submitting this assignment, you agree to the following Student Declaration: I hereby certify that no part of this assignment has been copied from any other students work or from any other source except where due acknowledgement is made in the assignment. No part of this assignment has been written for me by any other person except where such collaboration has been authorised by the Examiner.
Any non USQ copyright material used herein is reproduced under the provision of Section 200(1)(b) of the copyright Amendment Act 1980.

Signal Processing

Signals and Systems

Page 2

Objectives The aims of this assignment are: 1. To understand dierent signal models (course objectives 1 and 2) 2. To be able to model a discrete-time system (course objectives 3). 3. To design simple signal processing algorithms (course objective 4) Students are expected to communicate their ndings and ideas in a clear and logical manner. Submission

Assignments must: Be typed, not handwritten. Be submitted electronically at http://ease.usq.edu.au/. Be submitted in PDF format, and less than 4M in size. Use the le naming format LastName-StudentNumber.pdf. State your name and student number at the top of the rst page, leaving the remainder of the rst page blank for marking. You are not permitted to use any toolbox functions from MATLAB (i.e. those functions not provided as part of the standard Student Edition). For each question, submit a written report, detailing your approach and discussing your ndings. Your report should include diagrams, gures, source code, waveforms and/or images as appropriate for this assignment. Late assignments are not normally accepted. If you wish to apply for consideration for late submission, it must be done at least one week prior to the due date in writing or via email. Include documentary evidence of illness (a medical certicate) or additional work commitments (a written conrmation of changed work circumstances from your supervisor). For extension applications for other reasons, please contact the examiner at least 2 weeks in advance of the due date. Students are reminded of the penalties applying to plagiarism. Copying all or part of an assessment from another student, or from the web, is unacceptable. Plagiarism may result in loss of marks, or other penalties as determined by the Academic Misconduct Policy. Further helpful hints on how to correctly reference (and how to avoid plagiarism) may be found under the link Academic Honesty on the course Study Desk.

.../ 3

Signal Processing

Signals and Systems

Page 3

Marking Marks are awarded as per the marking guidelines at the end of each question. The breakdown of marks will be noted on the PDF le returned to you via EASE. Where an explanation or description is specically requested, your response will be assessed according to the following:

85-100:

75-85:

65-75:

50-65:

0-50:

High Distinction Excellent grasp of the problem. Explicitly addresses the question, uses knowledge from course and outside. Well-argued choice of method or approach as appropriate to the question. Correct grammar and spelling. Referenced if appropriate. Distinction Very good grasp of the problem. Addresses the question using knowledge from course. Well-argued choice of method or approach as appropriate to the question. Correct grammar and spelling, perhaps with very minor errors. Referenced if appropriate. Credit Understands the problem. Addresses the question using knowledge from course. Lacks clarity of expression or uses an imprecise argument. Moderate spelling or grammatical errors. Referenced if appropriate. Pass Has some understanding of the problem. Addresses the question but not clearly. Some misconceptions about the question. Moderate spelling or grammatical errors. Fail Has little or no understanding of the problem. Does not really address the question. Signicant misconceptions or total lack of understanding of the question. Poor spelling and/or obvious grammatical errors.

.../ 4

Signal Processing

Signals and Systems

Page 4

Part I
Question 1 20 Marks

Part (a) 10 Marks


Generate and plot a sampled sine wave with fs =8kHz, of 4 seconds duration, with frequency o = 10 rad/samp and amplitude A = 1.2. The waveform equation is x(n) = A sin n (1)

Explain the role of each of the variables in this equation. What is the true (Hertz) frequency generated in this case?

Part (b) 10 Marks


Generate a Gaussian random signal vector, v (n), of the same length. Then generate a noisy signal of the form y (n) = x(n) + v (n) (2)

Listen to the resulting signal y (n) for various values of . You will have to choose the value of experimentally try both small and large, and investigate the dierences. Plot one of the waveforms, and comment briey on your results. (a) Plot clean sinusoidal waveform & comment (b) Plot waveform with noise & comment Total 10 10 20

Question 2 60 Marks
A lter of the form G(z ) = with p = ren will be studied. z2 (z p)(z p ) (3)

Part (a) 20 Marks


, plot the time response to the input sinusoidal waveform With r = 0.95 and n = 10 generated in the rst question. Show both the transient and steady-state response.

.../ 5

Signal Processing

Signals and Systems

Page 5

Part (b) 20 Marks


Plot the frequency-domain response of the lter. Explain all your working, particularly how the z transfer function is converted to gain/phase plots.

Part (c) 20 Marks


Find the gain and phase from the time-domain response of part (a), and compare to that expected from the frequency response in part (b). Are the results the same? (a) Time response (transient+steady-state) (b) Frequency response (gain+phase) (c) Compare gains and phases, explain results Total 20 20 20 60

Part II
Question 3 40 Marks
Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth.

Part (a) 20 Marks


Quantize the audio samples down from the original 16 bits by removing the least-signicant bit (LSB) from the waveform, to make a 15 bit recording. Repeat for 14, 13, 12 bits, down to 1 bit. Explain how you would do this in MATLAB, and implement your approach.

Part (b) 20 Marks


Listen to the recordings, and make a table with the number of bits and the corresponding quality assessment. This can simply be a subjective assessment; use terms such as no perceptual dierence, minor noise present, quite noisy, poor quality etc. Calculate the signal-to-noise ratio in each case, and add that to your table. Explain how you calculated the SNR. (a) Explanation & MATLAB coding 20 (b) Subjective assessment table with SNR 20 Total 40

.../ 6

Signal Processing

Signals and Systems

Page 6

Question 4 80 Marks
This question examines the addition of a (synthetic) echo to the voice recording, such as would be found in a reverberant room. To do this, use a dierence equation of the form y (n) = x(n) + y (n D) (4)

where x(n) is the input audio, y (n) is the output (echoed) audio, D is the echo delay (in samples), and governs the amount of echo fed back.

Part (a) 20 Marks


Explain how to convert the above equation into a form suitable for passing to MATLABs filter() command. Use = 0.8 and D = 2 samples to explain your reasoning.

Part (b) 20 Marks


A delay of 2 samples (as in the previous part) would not be audible. Select an echo delay of 0.2 seconds, and = 0.4. Using your reasoning above, implement the reverberation equation, and listen to the result. Experiment with dierent values of the parameters and D. In your report, include a plot of the waveform, and explain in your own words the physical signicance of these parameters.

Part (c) 20 Marks


Convert equation (4) to a z transfer function. Where are the poles located?

Part (d) 20 Marks


Suppose the equation governing the reverberation is y (n) = x(n) + x(n D) (5)

What would be the physical signicance of this form, as opposed to that used in equation (4) ? Implement an audio echo system based on equation (5), and listen to the results. (a) Explain use of lter command 20 (b) Implement realistic lter, show waveform 20 (c) z transfer function and poles 20 (d) Explain nonrecursive transfer function 20 Total 80

End of Assignment

You might also like