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

The freezing point of camphor is 178.4 - English sba reflection 3 sample - Three arguments for social responsibility - Anz card services contact number - Octave allegro risk assessment template - Eaton vfd wiring diagram - Karisma travel agent login - White blood cell count 14.8 - Celta assignment 1 answers - Experiment 3 flame tests and electron configuration answer key - Bond dipoles and molecular dipoles - Three tall women monologue - Global services corporation engages in trade practices - The mission statement of coca cola - Network security first step 2nd edition pdf - Sap hybris administration guide - What is the sociological concept coined by irving janis - Current news article - Critical Thinking 2 - No fishing zones moreton bay - Art vocabulary ielts pdf - Trail making test free - Probability Distribution - In a team structure ________ - Slope of total cost curve - Dr john garside ent - Http www davidbordwell net blog - Reading Summary - Images of half wave rectifier - Annika boron and auston matthews - Personality assignment psyc 101 - Steps of fmea process ihi - IRB - 929 - What is bonding molecular orbital - Chapter 4 ethical and social issues in information systems - Recreation and wellness intranet project cost estimate - Action research in organizational development - Electromagnetic actuators fallout 4 - Progress notes - Project presentation script - Importance of tessellations in life - Conveyor Systems - Chemcollective virtual lab answers - 1.16 unit test basic tools and transformations part 1 - English - Six simple machines physics - Go live readiness assessment - Kellogg's supply chain case study - Essay 8 - Agile release train uses which type of teams - Anth writhing - Literature - My home work - Uws handbook construction management - Small bowel obstruction nursing considerations - National executive aisle cars - Clawson's diamond model of leadership - Interlink express tracking number - The wars timothy findley essay - Water in our world cpalms - Responsibility accounting and transfer pricing ppt - Can anyone guide the proposal report structure and offer writing help? - The following information is available for aikman company - School sport unit nsw - RUA: Analyzing Published Research - Difference between freshdirect and foodkick - Where is petty cash on the balance sheet - Ideo company structure - Value expressive function example - The Internet of Things and its impact on individual privacy and security - Star wars ccg a new hope card list - Ld didactic physics leaflets - How many combinations in a 3 digit lock - Discussion - International Trade - Manifest destiny paper - Convex lens ray tracing - Technology - Density of diesel in kg mm3 - Cloud - Resistance to change theory kotter - Final Disc 7 - Force table vector addition lab report - Research - Essex county college nursing - Cuso4 + bacl2 precipitate - Functions that are continuous everywhere - Objective data for abdominal pain - 145 mm to inches - Post- - 10 04 police code - Discussion 1 performance review - Create your own climograph answers - Dapper and boss casuarina - West yorkshire joint services - It follows movie ending explained - Discussion, APA 6, 2 References, Similarities Less 5% - Critically evaluate essay structure - Application of integrator circuit