Write a matlab function, MATLAB Programming

Assignment Help:

Write a MATLAB function called pgm which calculates the periodogram. The function inputs should be the length input vector x and its output should be the length N periodogram estimate Pxx. Generate a length N discrete random signal with the randn function and use the pgm to estimate the PSD for N = 128, 256, and 512. Inspect and comment upon the results. The theoretical autocorrelation function for this discrete Gaussian random signal equals σ2δ (i.e. there is zero similarity between the signal and a shifted version of it), where is the standard deviation of the random signal; for the above random signal (see help randn), is equal to 1. Therefore its true PSD is a constant, unity, for all frequencies. Such a signal is referred to as white noise because it has a constant spectrum independent of frequency, as an, albeit approximate, analogy with white light. The difference between this ideal PSD and those estimated with the datasets is due, in part, to their ?nite lengths. One method to improve these estimates is to apply frequency domain smoothing.

- Employ the ?lt?lt command within MATLAB to smooth the PSD estimates with a zero phase FIR ?lter with impulse response sequence 0.2*[1 1 1 1 1]. Does this improve the apparent PSD estimate?

- Generate a length 1024 discrete random signal with the randn function and sub-divide the signal into eight separate 128 point signals. Estimate the PSD for each length 128 signal and display on two plots the eight results (Note: Break each window into 2× 2 sections. Read help ?gure on how to obtain the second window). Notice the variation of the estimates.

- These eight results can be averaged to yield a new PSD estimator called the averaged periodogram which has less variation than the individual PSDs. Display this result.


Related Discussions:- Write a matlab function

Expert system, how can i write a programm about maze solver expert system o...

how can i write a programm about maze solver expert system only with if & then

2D steady state heat conduction, How do I compute and plot a temperature pr...

How do I compute and plot a temperature profile along the x axis from -6 to 6 given the equation for steady state heat conduction and boundary conditions

Write a matlab function, There are many approaches to numerically estimatin...

There are many approaches to numerically estimating the derivative of the function.  The relationship:   is called a forward difference, since the estimate of the derivativ

Option pricing, Barrier Option pricing in Matlab using MC simulation or fin...

Barrier Option pricing in Matlab using MC simulation or finite difference methods

Error in variables statements, Error in variables statements: Error: T...

Error in variables statements: Error: The expression in the left of equals sign is not a valid target for an assignment. >>  By placing a semicolon at the end of the sta

Find the value of delta equation, Solve the optimality condition for each P...

Solve the optimality condition for each P equation against M according to the following relation: Condition for Optimality:         ∇ M = λ ∇ P      with respect to C and T.

Estimate the sample mean and sample standard deviation, The fuel consumptio...

The fuel consumption of a certain make of car may not be exactly that rated by the manufacturer. Suppose ten cars of the same model were tested for combined city and highway fuel c

Convolution, Perform the convolution of following sequences (a) x[n] = [1 2...

Perform the convolution of following sequences (a) x[n] = [1 2 3], N1 = 1 and h[n] = [1 - 1], N2 = 1 (b) x[n] = [1 2 3], N1 = 2 and h[n] = [1 - 1], N2 = 1 (c) x[n] = [1 2 3], N1 =

Write Your Message!

Captcha
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