Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A signal generator is expected to output a pure sinusoidal signal at a given frequency. Unfortunately, due to some subpar components in the electronics, the

image text in transcribed
A signal generator is expected to output a pure sinusoidal signal at a given frequency. Unfortunately, due to some subpar components in the electronics, the signal is contaminated by white noise over a range of frequencies. Fortunately, the noise does not impact the desired frequency. It hOut is the discretized output of the generator, write a Matlab function hClean = clean (hOut) that removes the noise without affecting the signal. To heip you with the problem, I have provided a p code for a function hOut = samp leSignal() that provides an example of the type of signal that needs to be cleaned. This is an example. Your cleaning function will be evaluated with signals that may have different target frequencies and/or noise intensity and range so it cannot not assume that the signal is at a given frequency. What you can assume is that the intensity of signal to noise ratio is the same as in the example provided. The figure shows the noisy and the clean signal. Function ? Code to call your function 1 hClean=clean(samplesignal( )); 2 3 Error=sqrt(sum((hClean-signal (10,0),2)/1024)); 4 disp('If ok, the error should be machine error, about 10{16} or smaller') 5 disp('Error =, [num2str(Error)]) 6 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago