Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

I need 200 words on affects the performance of the adaptive filter.

27/08/2020 Client: azharr Deadline: 24 Hours



Instructions

Do Adaptive notches filter using MATLAB 

It will be MATLAB based right, without using filter functions 


Please check attached file  

........................................................................................................................................................................

Attachment 1;

Page 1 of 3

ECE 529, Spring 2019

Mini-Project #1: Adaptive Filtering

Due Thu. Nov. 14 at 5:00 p.m. MST

Do not use any existing adaptive filtering functions for this assignment. Instead, write your own

source code.

Part 1: Adaptive Notch Filter

Implement an adaptive notch filter to reduce additive, sinusoidal noise that is interfering with a

desired signal. Assume the frequency of the sinusoidal noise is unknown and slowly varying. A

second-order IIR notch filter (a.k.a. bandstop filter) has transfer function,

𝐻𝐻(𝑧𝑧) = οΏ½1 βˆ’ π‘’π‘’π‘—π‘—πœ”πœ”0π‘§π‘§βˆ’1οΏ½οΏ½1 βˆ’ π‘’π‘’βˆ’π‘—π‘—πœ”πœ”0π‘§π‘§βˆ’1οΏ½

(1 βˆ’ π‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘—π‘—πœ”πœ”0π‘§π‘§βˆ’1)(1 βˆ’ π‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿβˆ’π‘—π‘—πœ”πœ”0π‘§π‘§βˆ’1) = 1 + π‘Žπ‘Žπ‘§π‘§βˆ’1 + π‘§π‘§βˆ’2

1 + π‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘§π‘§βˆ’1 + π‘Ÿπ‘Ÿ2π‘§π‘§βˆ’2

where π‘Žπ‘Ž = βˆ’2 cos πœ”πœ”0 and 0 ≀ π‘Ÿπ‘Ÿ ≀ 1. The corresponding difference equation is

𝑦𝑦(𝑛𝑛) = π‘₯π‘₯(𝑛𝑛) + π‘Žπ‘Ž π‘₯π‘₯(𝑛𝑛 βˆ’ 1) + π‘₯π‘₯(𝑛𝑛 βˆ’ 2) βˆ’ π‘Ÿπ‘Ÿ π‘Žπ‘Ž 𝑦𝑦(𝑛𝑛 βˆ’ 1) βˆ’ π‘Ÿπ‘Ÿ2 𝑦𝑦(𝑛𝑛 βˆ’ 2) (Eq. 1)

The notch is centered at digital frequency πœ”πœ”0. The notch becomes sharper as π‘Ÿπ‘Ÿ approaches 1.

We can adapt the notch frequency automatically by solving for the value of πœ”πœ”0 that minimizes

the power in the output signal. (If the frequency is selected correctly, then the sinusoidal noise

will be canceled, thereby minimizing the output power.) Set π‘Ÿπ‘Ÿ to a fixed value. If the noise

frequency varies over a narrow range, then π‘Ÿπ‘Ÿ should be set closer to 1 in order to generate a

sharper notch. If the frequency varies over a larger range, then π‘Ÿπ‘Ÿ should be set to a smaller

value.

Define the error signal to be 𝑒𝑒(𝑛𝑛) = 𝑦𝑦(𝑛𝑛) βˆ’ 𝑠𝑠(𝑛𝑛). We want to adapt the filter in order to

minimize the power in the error signal. Assuming that the signal and noise are uncorrelated, we

can equivalently adapt the filter to minimize the total output power, 𝑦𝑦2(𝑛𝑛). The traditional

gradient descent method requires knowing the derivative of the output power, which we

calculate as 2𝑦𝑦(𝑛𝑛)

𝑑𝑑𝑑𝑑(𝑛𝑛)

𝑑𝑑𝑑𝑑 . And 𝑑𝑑𝑑𝑑(𝑛𝑛)

𝑑𝑑𝑑𝑑 can be obtained by differentiating Eq. 1, which gives us

𝑑𝑑𝑑𝑑(𝑛𝑛)

𝑑𝑑𝑑𝑑 β‰ˆ π‘₯π‘₯(𝑛𝑛 βˆ’ 1) βˆ’ π‘Ÿπ‘Ÿ 𝑦𝑦(𝑛𝑛 βˆ’ 1)

If we use this in a gradient descent iteration to update the value of π‘Žπ‘Ž, then we have

π‘Žπ‘Ž(𝑛𝑛 + 1) = π‘Žπ‘Ž(𝑛𝑛) βˆ’ πœ‡πœ‡ 𝑦𝑦(𝑛𝑛)

𝑑𝑑𝑑𝑑(𝑛𝑛)

𝑑𝑑𝑑𝑑

π‘Žπ‘Ž(𝑛𝑛 + 1) = π‘Žπ‘Ž(𝑛𝑛) βˆ’ πœ‡πœ‡ 𝑦𝑦(𝑛𝑛) [π‘₯π‘₯(𝑛𝑛 βˆ’ 1) βˆ’ π‘Ÿπ‘Ÿ 𝑦𝑦(𝑛𝑛 βˆ’ 1)] (Eq. 4)

Page 2 of 3

where πœ‡πœ‡ is a very small constant that serves as a convergence factor. Since π‘Žπ‘Ž = βˆ’2 cos πœ”πœ”0, we

should impose a constraint that βˆ’2 ≀ π‘Žπ‘Ž ≀ 2. Initialize the value to be π‘Žπ‘Ž = βˆ’2 cos(πœ‹πœ‹β„2) = 0. If

the update equation yields |π‘Žπ‘Ž| > 2, then we should reset π‘Žπ‘Ž(𝑛𝑛) = 0.

(a) Implement a computer simulation of an adaptive notch filter, using Eq. 1 to perform the

filtering and using Eq. 4 to update the value of π‘Žπ‘Ž at each iteration. Add some sinusoidal

interference 𝑣𝑣(𝑛𝑛) to a desired signal 𝑠𝑠(𝑛𝑛) to obtain an input signal π‘₯π‘₯(𝑛𝑛) to experiment

with. Here are some helpful MATLAB functions:

rng(1); % set the seed for the random number generator

v = randn(N,1); % generate N samples of pseudorandom white Gaussian noise

To convert white Gaussian noise to β€œcolored” noise having a limited bandwidth, one

method is to send the white Gaussian noise through a lowpass filter, such as

𝐻𝐻(𝑧𝑧) = 1 + π‘§π‘§βˆ’1

1 βˆ’ π‘Žπ‘Ž1π‘§π‘§βˆ’1

where βˆ’1 < π‘Žπ‘Ž1 < 1. For example, π‘Žπ‘Ž1 = 0.9 does lots of smoothing and π‘Žπ‘Ž1 = βˆ’0.9 does

very little. Note: filtering the signal will affect the signal power.

Scale the signal components to achieve a reasonable signal-to-noise ratio (e.g., 0 dB to

30 dB):

SNR = 20 log10( var(𝑠𝑠(𝑛𝑛)) / var(𝑣𝑣(𝑛𝑛) )

However, for debugging purposes, you may want to try omitting 𝑠𝑠(𝑛𝑛) to see if the filter

can cancel the sinusoidal interference for the noise-only case. Try various fixed values of

πœ‡πœ‡ (e.g., 0.0005 to 0.05) and π‘Ÿπ‘Ÿ (e. g. , 0.85 to 0.98). Investigate whether the bandwidth of

π‘₯π‘₯(𝑛𝑛) (i.e., the amount of high-frequency components) affects the effectiveness of the

filtering. Plot β€œπ‘Žπ‘Ž versus 𝑛𝑛” and β€œπ‘’π‘’2(𝑛𝑛) versus 𝑛𝑛”, where 𝑒𝑒(𝑛𝑛) = 𝑦𝑦(𝑛𝑛) βˆ’ 𝑠𝑠(𝑛𝑛). Show how

the plots are affected if you change the value of πœ‡πœ‡. Discuss what happens when you vary

π‘Ÿπ‘Ÿ, πœ”πœ”0, and the bandwidth of π‘₯π‘₯(𝑛𝑛). Plot the final 256 samples of 𝑠𝑠(𝑛𝑛), π‘₯π‘₯(𝑛𝑛), and 𝑦𝑦(𝑛𝑛).

Also compare plots of the magnitude Fourier transform of the last 256 samples of π‘₯π‘₯(𝑛𝑛)

and 𝑦𝑦(𝑛𝑛). For example, in MATLAB you can use Xmag = abs(fft(x)).

(b) Modify the sinusoidal noise so that its frequency is slowly varying rather than fixed.

Show how that affects the effectiveness of the adaptive filter. Note that the

instantaneous frequency of cos(2πœ‹πœ‹πœ‹πœ‹(𝑑𝑑)) is 𝑑𝑑𝑑𝑑⁄𝑑𝑑𝑑𝑑.

Page 3 of 3


Part 2: LMS Adaptive Filter 

Learn about the adaptive LMS filter by consulting various external references. For example, you

could start with Wikipedia: Least mean squares filter and consult its references for further

information, or just google to find numerous useful tutorials. Also learn about β€œadaptive noise

cancellation,” which is a well-known application of the LMS filter.

Implement a computer simulation of the LMS adaptive filter, and apply it to an adaptive noise

cancellation problem. Show experimental results and discuss how the adaptive filter performs.

Include plots showing how the performance varies as you vary the convergence factor, the filter

length, and any other parameters. Be sure to vary the bandwidth of the noise to see how that

affects the performance of the adaptive filter.

Attachments:

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Writer Writer Name Offer Chat

Writers are writing their proposals. Just wait here to get the offers for your project...

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Code of conduct for architects - Discussion 4 CISS 301 - Km group of companies - Issues in political theory catriona mckinnon free download - Australian unity mid hospital - Kenosha - Case Study Analysis - Sight first lions club - 30a shellcove road kurraba point - Literary terms word search answer key - What is it about 20 somethings essay - Windshield survey example - Book review - 2p 22q2 p - 22454 n 21st ave phoenix az 85027 - Critical analysis of corporate social responsibility - Ghetto miasma - Iturralde v hilo medical center usa summary - Why is being organised important - Discussion M-5 W-9 Lance - American business women's association - Advantages of integrated software applications - Any good tutor in Accounting & finance field - Apush unit 3 test - Volume and capacity stage 1 - Forensic toxicology worksheet answers - Faces edges and vertices of cube - Mock the week monsoon poultry hospital - Penalty for 20km over speed limit - Chapter 4 socialization and the construction of reality - Alt codes french accents - Assignment 2: Best Practices - Am i to be blamed declamation script - The major purpose of 360-degree feedback is to increase uniformity by soliciting like-minded views. - Benner's novice to expert theory - D8 - Soc 515- topic 4 paper - A company's profit margin is calculated by osha - 8 pin mini din rs232 pinout - Leap frog cartridge game storage kit case - Belmont ridge middle school - What is a windshield survey nursing - Weather station model activity - 75 egans road oakdale - Community Nursing DQ week 6 student reply Irina Ruiz - How to write an exegesis philosophy - Magnificat song in latin - Module 2 Discussion - (Rok) week 7 discussion Fin100 - Jayson morris room to read - Responding - Lady lazarus sylvia plath - An electronic component for a medical x ray - The story of an hour third person omniscient - Iso architecture + design - They say i say chapter 5 pdf - Bargaining power of suppliers tesla - Cansela - What feature distinguishes thoracic vertebrae from other vertebrae - The lady tasting tea pdf free - How to process payroll in adp - Springwell medical centre edinburgh - CMGT/445 - Understanding social work sage publications - When callable bonds are redeemed below carrying value - Difference between ah and esp - Socio-Economic and Legal Environment - Prince of prussia hotel - S block periodic table - Disa acas best practices guide - The history of fashion photography book - Privilege power and difference allan johnson pdf - Rose & frank v jr crompton - How to find the heat of fusion - Little caesars business model - Hi speed usb carrier - What does the name christian mean - An infinitely long line of charge with uniform density - Organ Leader - Cadbury dairy milk chocolate easter egg gift box 400g - Solver paints colour chart - Review summary - Kerridge lowe and mcphee - Correction to my previous email - Soil Composition Lab - 10 academic article to review - 150 words - This assignment requires the use of Microsoft Excel. If you have Windows, you will need to use the Data Analysis Tool Pack. If you have a Mac with Excel 2011, - Family resources in home economics - Math skills for chemistry - Statistics in business qnt 275 - Bilinguality and bilingualism hamers and blanc - The Status of Global HIV Efforts - Fundamental auditing principles and concepts - Lifespan - How to increase roa in capsim - Opposite of still life - Extra thick blot paper - Pros and cons of cobit - Brisbane flood overlay code