48 views

Uploaded by Moiz Subhan

fwqwf

fwqwf

© All Rights Reserved

- ImportantCharacteristicsofSoundFieldsofUltrasonic_2013
- (Chapman & Hall Mathematics Series) Seán Dineen (Auth.)-Functions of Two Variables-Springer US (1995)
- Calculus of Variations
- Vector Calculus_ Understanding the Gradient _ BetterExplained
- EEWeb Pulse - Issue 37, 2012
- EMBC07 Curvature Feature Detection
- 04 Lagrange Multiplier - Handout
- 10_ALGEBRA.pdf
- Applications of Derivativeqasdfgh
- Element Entity Attempts Expertise Exploitation
- Eee472 Dsp Lab Manual
- optimization
- A SPOKEN WORD BOUNDARIES DETECTION STRATEGY FOR VOICE COMMAND RECOGNITION
- LEM_TOPAS1000
- 7sec03
- Lab 1
- Section 12.7
- vibration presentation .pdf
- Chapter-3
- 2010 H2 Physics Ans - RI

You are on page 1of 3

Coursework - assignment

Due: 06/01/2016. Submit the assignment via the iCentre using the formal submission sheet.

This assignment carries 50% of total mark for this module.

The task:

Write the Matlab code for generating, analysing, displaying and playing of a recorded and

simulated trumpet sound.

Short introduction:

The trumpet signal can be expressed using Fourier series as a sum of sinusoids at frequencies of

{494, 2x494, 3x494 . . .} hertz. Therefore, the nine-term finite Fourier series approximation of

the trumpet signal is:

9

ec.1

trumpet _ sim t = ck cos 2k 494t k

k =0

where trumpet_sim(t) is the amplitude of the simulated signal at moment t, ck is the coefficient of

the term k, k is the phase of term k. Their values are given in table below:

()

c0 = 0

c1 = 0.1155

c2 = 0.3417

c3 = 0.1789

c4 = 0.1232

c5 = 0.0678

c6 = 0.0473

c7 = 0.0260

c8 = 0.0045

c9 = 0.0020

0 = 0 radians

1 = 2.1299 radians

2 = +1.6727 radians

3 = 2.5454 radians

4 = +0.6607 radians

5 = 2.0390 radians

6 = +2.1597 radians

7 = 1.0467 radians

8 = +1.8581 radians

9 = 2.3925 radians

Expected work:

1. Write a script that calculates the amplitude of the simulated trumpet signal (given in ec. 1) at

time t = 0.03 and t = 1

10 marks

2. Describe how the amplitude of the signal trumpet_sim changes in a time period of 1 second.

To do this, write a script that plots the amplitude versus time. Comment your results in the

report. Include appropriate graphs in the report.

The created code must cover the following stages:

o Make a time vector (from 0 - 1 in steps of 1/44100)

o Calculate the amplitude of the signal for a period of 1 second

o Plot the curve of trumpet_sim versus time for the first 800 samples

o Label your graph appropriately

20 marks

1

3. Analyse the signal changes in time. For that, write a script that calculates the maximum and

minimum values of the signal. Comment your results and include appropriate graphs. The

script must cover the following stages:

o Calculate the global maximum and the minimum values.

o Create a function that calculates the local minimum and maximum values of the

signal and gives the time when they occur.

o Ask the user to enter a time value between 0 and 1 from the keyboard

o Call the function the calculates the signal amplitude at the time given by the user

o Plot the trumpet_sim signal versus time for the first 800 samples and indicate on

the graph with different markers the global and local minimum and maximum

values

20 marks

4. Load in Matlab the trumpet signal provided (trumpet_rec.wav). Analyse the differences

between the simulated signal (trumpet_sim created using equation 1) and the recorded one

(trumpet_rec). Comment your results and include appropriate graphs. The script must

cover the following stages:

o Load the trumpet_rec.wav signal and store it in a variable named trumpet_rec.

o Plot the trumpet_rec and trumpet_sim signals on a graph called signals

o The difference between the value of trumpet_rec and x at a specific time is called

the absolute error. Create a function that counts the number of absolute errors that

exists between the two signals.

o Create two functions to calculate the mean square error (MSE) and the standard

deviation.

o Plot the error signal on the signals graphs using a separate y axis. Explain in the

report the advantage of using graphs with multiple axis.

20 marks

5. Create a Graphical User Interfaces (GUI) which loads an *.wave file and performs the

following tasks:

o Filters the signal to remove the noise (One filter that can be used is the 5-point

moving average filter: each sample of the filtered signal is calculated as the

average of 5 samples centred on the sample to be filtered: xn = (xn-2+ xn-1 + xn +

xn+1 + xn+2)/5);

o Reverses the signal (in a signal whit n samples, sample 1 is swapped with sample

n, sample 2 with sample n-1, etc)

o Introduces echo: adds to the signal itself samples from 1000 samples ago with the

amplitude decreased by 0.7 (multiplied by 0.7).

o Plays and plots the signals

20 marks

Marks for Presentation:

Structure (sections, introduction/conclusions/appendices), Logic, Understanding, Flow,

Comments

Lose marks for: lack of coherence, poor explanation, poor grasp, lack of sections, poor layout.

10 marks

Instructions:

You need to write appropriate Matlab programs to perform the operations required, commenting

your code in detail.

Present the results, plots and comments in a concise, but clear report (1500 words equivalent),

which should include the work and the required plots appropriately labelled. Include your code

as an appendix to the report.

The report is to be typed (12 pt. Times Roman font), neat, legible, well-structured and organised

with a front page identifying what the report is, and who submitted it, a Contents page and page

numbers. Make sure that the work is clearly marked with your Student Identification Number (use of

footers is useful should your report become separated). All work is to be fixed together (stapled).

Due: 06/01/2016. Submit the assignment via the iCentre using the formal submission sheet.

- ImportantCharacteristicsofSoundFieldsofUltrasonic_2013Uploaded byRakesh Kumar Munda
- (Chapman & Hall Mathematics Series) Seán Dineen (Auth.)-Functions of Two Variables-Springer US (1995)Uploaded byPaulo Gonzalez
- Calculus of VariationsUploaded byPedro Palacios Avila
- Vector Calculus_ Understanding the Gradient _ BetterExplainedUploaded byOzawa Magoo
- EEWeb Pulse - Issue 37, 2012Uploaded byEEWeb
- EMBC07 Curvature Feature DetectionUploaded byFemi Alabi
- 04 Lagrange Multiplier - HandoutUploaded byJohn
- 10_ALGEBRA.pdfUploaded byFuad_Khafizov_5342
- Applications of DerivativeqasdfghUploaded byNeil Dahiya
- Element Entity Attempts Expertise ExploitationUploaded bysfofoby
- Eee472 Dsp Lab ManualUploaded byZeko
- optimizationUploaded bySree Harsha Ch
- A SPOKEN WORD BOUNDARIES DETECTION STRATEGY FOR VOICE COMMAND RECOGNITIONUploaded byIgor Santos Peretta
- LEM_TOPAS1000Uploaded byFranz Montero Ramirez
- 7sec03Uploaded byUmanath R Poojary
- Lab 1Uploaded byIsraa Ghzawi
- Section 12.7Uploaded byhthaier4062
- vibration presentation .pdfUploaded byZikireya79
- Chapter-3Uploaded byLuqman Hafizi
- 2010 H2 Physics Ans - RIUploaded byYang Zhenyan
- Elc 2 Sem Test 1 Memo_1 March 2010Uploaded bySammy-papa Maropeng Shika
- dsplab_Wk1Uploaded bygaurnitaidas
- lab e.docxUploaded bySadeeq Ul Hasnain
- saju2.docxUploaded bySadeeq Ul Hasnain
- deriv int paper 2 mathUploaded byapi-280409745
- 149730_TAN-005 (1)Uploaded bymark363
- ABR Ac vs Bc Con Insert 3a (1998)Uploaded bytheseahawk
- fraser-dehaan curriculum projectUploaded byapi-356505889
- Energy SignalUploaded byNoraesyah Kamaruddin
- jors20127aUploaded byEtno

- i Jr Et 20150406019Uploaded byMoiz Subhan
- Quiz cmUploaded byMoiz Subhan
- ASTM A 216.pdfUploaded bynrupbalar
- ENG790s2 Lab Sheet - Hilton Combustion Unit-1Uploaded byMoiz Subhan
- Spread Sheet FinalUploaded byMoiz Subhan
- Wind Energy IntroductionUploaded byMoiz Subhan
- Energy 15Uploaded byMoiz Subhan
- Energy 14Uploaded byMoiz Subhan
- 47281Uploaded byakppk1384
- greeneconomy_Ch4_ConcentratingSolarPowerUploaded byfran01334
- White Paper Red Lion Seven KPIs for Production MonitoringUploaded byMoiz Subhan
- Pool Ladder Drawings Pg1Uploaded byMoiz Subhan
- Muhammad Moiz SubhanUploaded byMoiz Subhan
- List Students Shortlisted Second Round K-ElectricUploaded byMoiz Subhan
- Heat exchanger designUploaded byBaha Eddine Gharbi
- Boiler docUploaded byVikas Saini
- Points (1)Uploaded byMoiz Subhan
- Gear Specifications (1)Uploaded byMoiz Subhan
- AD Electrical EnggUploaded byMoiz Subhan
- matlab codeUploaded byMoiz Subhan
- Pool Ladder Drawings Pg3Uploaded byMoiz Subhan
- Pool Ladder Drawings Pg1Uploaded byMoiz Subhan
- Design of Machine Elements ME 452Uploaded byMoiz Subhan
- For EOL 13 (2)Uploaded byMoiz Subhan
- Pc TableUploaded byMoiz Subhan
- ME221 Ic EngUploaded byMoiz Subhan
- Lab task 1Uploaded byMoiz Subhan

- ECON 302 Lecture 1Uploaded byJasmine Yang
- AIAAGCPrimerUploaded by1oldtech
- Library and Information Science Education in Japan in the 21st CenturyUploaded byflunked
- Sas Resume.doc HyUploaded byHarinath Reddy Konepalli
- -comprehensive-mathematics-jee-advanced-2014.pdfUploaded byMohit Mude
- Monitoring SOPUploaded byNita Purmalasari
- Classification of Health Care OrganizationsUploaded bySavinder Sachdev
- project managementUploaded byapi-121376076
- PMSG for Real TimeUploaded byHuynh Thanh Anh
- Survival Stakes RevisedUploaded byArun Shan S
- Yokogawa Update on Fieldbus OfferingUploaded bys3niorito
- Ongc __ Ta FormatUploaded byasif raza
- Hermosa Perfume BusinessUploaded byYuri Estuye Espinar
- steam loco operationUploaded byapi-177106557
- 3319176528.Direct1bstUploaded byjann
- Face the FutureUploaded byRamonaTN
- FDA Fines American Red CrossUploaded byLansingStateJournal
- GE Multilin L90 V7.31 Line PTT User Manual ENU.pdfUploaded byAniela
- MNGT5395 Strategies for Growth S32017Uploaded bymbs mba
- ASME PVHO-1Uploaded byluisarrien
- US Federal Trade Commission: franchise93-01Uploaded byftc
- The Chemical Industry.pptUploaded byEli Leopoldo Geneston
- EEE3 Lec13 - Electrical System DesignUploaded byjakob2011
- Yearly Lesson Plan1 ICTLUploaded byNurun Najwa Khalid
- Shared MemoryUploaded byvani_vp
- Marketing Plan_Anonymous Chatbot on FB Messenger.xlsxUploaded byAmrit '
- Import ModelUploaded byZiitrics Solutiions
- Ceramic Fiber MoldingUploaded byanon_982022273
- 01-13 GPON Reference Standards and Protocols.pdfUploaded byCafuChiquito
- SSI Basic System Notes (PDF)Uploaded byBambang Soegeng