What is the minimum snr for a sinusoid in white noise

Assignment Help MATLAB Programming
Reference no: EM13923036

Theme: Random Processes

Note: Look for pr4files.zip and .m files for this project. Functions (write using Matlab)

1. x = singen: generates samples of a real sinusoid and places the result in a vector/array. The user provides amplitude, sampling frequency, sinusoid frequency, phase, and number of samples.

2. x = wgnoise: creates a real vector of white gaussian noise. The user provides the noise variance and number of samples. You can use the Box-Muller function or Matlab's randn() to do this.

3. r = ubcorr(x): computes a vector of unbiased one-sided autocorrelation function (ACF) estimates for the data in x. This is the formula that has a scaling factor of N-k in the denominator, where k is the current offset in samples and N is the total length. You may implement this function using either time-domain techniques or frequency-domain (fast convolution). Note: you may use function xcorr() available from Matlab for this task.

4. r = corr(x): computes a vector of biased one-sided ACF estimates for the data in x. Just like ubcorr(x), except the scaling factor is just N instead of N-k. Note: you may use function xcorr() available from Matlab for this task.

5. psd = perigram(x): computes and plots the periodogram of x. The periodogram is just the magnitude-squared representation of the FFT of x. (In Matlab, you may want to do an fftshift() of the FFT output so you get the expected symmetry about f=0 Hz. You should also divide the FFT output by the length of the FFT since Matlab normally divides during the inverse FFT. This will keep your magnitudes scaled correctly.)

6. psd = blacktuk(x): computes and plots the Blackman-Tukey spectral estimate of x, which is found using the FFT of the biased ACF of x. This is the method based on the Wiener-Khintchine (W-K) Theorem. The same FFT comments as given in #5 also apply here.

7. y = quantize(x,n): Performs n-bit uniform quantization of input vector x. You may use my function quantize.m for this.

You may also use my function plotpsd.m to plot your psd's in dB and normalized frequency axis. Matlab also has a psd() function, but it is set up for windowing which will alter your results.

Problems to solve through the use of simulations:

1. What is the minimum SNR for a sinusoid in white noise to be detectable using frequency domain techniques (Periodogram and Blackman-Tukey)? Do the results depend on frequency?

a. Note 1: SNR = (signal power)/(noise power). The signal power in a sinusoid of amplitude A is A2/2, while the power in AWGN noise is just it's variance. Usually we look at SNR levels in dB format: SNRdB = 10*log10((a^2/2)/var)

b. Note 2: We can find the minimum SNR by setting either the sinusoid amplitude or the noise variance constant and changing the other term until we can no longer distinguish the peak of the sinusoid in the noise. Plot the spectral estimates to perform this analysis. This can and will be a subjective process.

2. Compute and plot separate correlation functions of white noise data and of sinusoidal data. Do this using both the biased and unbiased autocorrelation functions. Are the results what you expected?

3. Study the effects of quantization on an audio signal.

a. Read in the swtheme.wav file using the wavread command in Matlab: [Y,FS,NBITS]=WAVREAD('swtheme')If you are not using Matlab, you may read in the ASCII data from file swtheme.dat. Note that this data is quantized to 8 bits.

b. Make an estimate of whether the process represented by this data is Wide Sense Stationary. Justify your estimate.

c. Find the PSD of this data using either the Periodogram or Blackman-Tukey estimator. Is the PSD what you expected based on the ACF you found in part b?

d. Now quantize the data to n=3 bits (8 levels). Based on the bin size reported by the quantize() fn, determine the autocorrelation fn and psd of the quantization process.

e. Plot the psd of the quantized audio data. Based on the psd's of the input audio data and the quantization process, does this plot make sense.

f. [Optional]: Write out the quantized data as a new wave file using wavwrite(), and play the file through Windoze. How does the quality compare to the original 8-bit quantized value? Repeat for other quantization levels if desired.

Please turn in:

1) Source code for your files

2) Results and analysis

Verified Expert

The assignment is about the Random process modeling. The software used for the modeling is MATLAB. The concept of sinusiodal signal and noise signals are studied with the help of correlation.The correlation of the noisy signals are studied in case of white stationary noise. Finally, a sample audio signal is equalized to reduce the storage size and the equalized data are used to regenerate the audio signal.

Reference no: EM13923036

Questions Cloud

Find the risk neutral probability : Consider a call option on a stock selling for $30 per share with a $32 exercise price. The stock's standard deviation is 36% per year; the option matures in 6 months; and the risk-free interest rate is 4% per year. Find the risk neutral probability a..
Use the basic equation for the capital asset pricing model : Use the basic equation for the capital asset pricing model (CAPM) to work each of the following problems. Find the required return for an asset with a beta of 0.77 when the risk-free rate and market return are 7% and 15%, respectively. Find the risk-..
Identify a recently announced security vulnerability : Write a paper on Any of the topics on cyber-crime. your task is to identify a recently announced security vulnerability and write a profile of the threat. The profile should contain the name of the threat, the systems it attacks, how it performs its ..
Complementary and alternative therapies against cancer : Write a Three pages paper on the topic Complementary and alternative therapies against cancer.
What is the minimum snr for a sinusoid in white noise : What is the minimum SNR for a sinusoid in white noise to be detectable using frequency domain techniques (Periodogram and Blackman-Tukey)? Do the results depend on frequency? Compute and plot separate correlation functions of white noise data and of ..
Texas constitution requires that public servants : The US Constitution, in Article 6, prohibits any religious test from being required to serve in any public office. The Texas Constitution requires that public servants acknowledge the existence of a Supreme Being.
What is the all-in-cost of the York loan including the LIBOR : York is taking out a $10,000,000 two-year loan at a variable rate of LIBOR plus 1.50%. The LIBOR rate will be reset each year at an agreed upon date. The current LIBOR rate is 4.00% per year. The loan has an upfront fee of 1.00%. What is the all-in-c..
Covariances of the returns between two securities : Assume N securities. The expected returns on all the securities are equal to 0.01 and the variances of their returns are all equal to 0.01. The covariance’s of the returns between two securities are all equal to 0.005. What are the expected return an..
Purchase perpetuity-immediate with semi-annual payments : Maggie wins the lottery and is awarded 500,000 at the beginning of each quarter for the next 20 years. The government takes 40% of her winnings and she spends 90% of what is left. At the end of 20 years the accumulated value in the account is used to..

Reviews

inf923036

12/22/2017 4:52:47 AM

Thanks for providing the solution along with programs, I appreciate it and will come back with too many assignments but assure me you will provide the same quality again and again.

Write a Review

MATLAB Programming Questions & Answers

  Write a gui function that will display sliders

Write a GUI function that will display sliders - The wind chill factor measures how cold it feels with a given air temperature.

  Recall the velocity of the falling parachutist

Question: Recall the velocity of the falling parachutist can be computed by  V(t) = gm(1-e -c/mx )/c,  Use first order error analysis to estimate the error of v at t=6. If g=9.8 and m=50 but c=12.5 +_ 1.5

  Calculate an approximation to the energy consumed

Calculate an approximation to the energy consumed over the period and calculate an approximation to the energy consumed over the period t = a to t = b.

  Write a matlab program for taking arbitrary number of inputs

Write a matlab program for taking arbitrary number of inputs and displaying the average & geometric mean.

  Let''s combine everything together

Let's combine everything together! In this question, you will be asked to combine scaling and translations. Write a function named "problem5" that accepts a single input and scales the image by 0.5 and shifts it up by 7 units. The input variable h..

  Create a matlab program

Create a MATLAB program that will use MATLAB's fzero function to determine d for the following parameters: R = 0.5 m and in steps of 0.1. Create a table consisting of S and d .

  Role of signal processing in an engineering application

What could the contaminant/toxicant/pollutant be and where could the contaminant have likely come from -  explain how all the information provided in the case study backs up your Diagnosis.

  Write a matlab script that performs dot product

Let a and b be three-dimensional vectors. Write a MATLAB script that performs: 1. the dot product between the two vectors and 2. the cross product a × b.

  When a fast-breeder reactor is shut down quickly the

when a fast-breeder reactor is shut down quickly the temperature of the surface of a number of components drops from

  Considering the integral

Using the code, generate the first 40 terms: show the result using the format long e. Comment about your results.

  Find the acceleration by taking the derivative again

We can find the acceleration by taking the derivative again.

  Write a user defined function

Write a user defined function FindFrequency which inputs are a time and a wave elevation vector and output the approximated wave frequency (fappr=FindFrequency(t,eta)).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd