Write a matlab function, MATLAB Programming

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.

Posted Date: 2/27/2013 6:02:08 AM | Location : United States







Related Discussions:- Write a matlab function, Assignment Help, Ask Question on Write a matlab function, Get Answer, Expert's Help, Write a matlab function Discussions

Write discussion on Write a matlab function
Your posts are moderated
Related Questions
Savannah says that the least common multiple of 4 and 6 is 24. Is she right or what is her mistake?


Relational Expressions: The Conditions in if statements use expressions which are theoretically, or logically, either true or false. These expressions are termed as relational

#quest121ion..

Find the boundary between each two of the equations P1, P2, P3 by solving: P1 = P2  ,  P1 = P3  ,  P2 = P3 Plot the boundary lines on a single figure that also includes the

can we use regression in bioinformatics toolbox?

Illustration of script Documentation: For illustration, the script to compute the area of a circle could be modified to have comments: The first comment at the startin

In the manufacturing of ball bearings, the components, such as the ball, are hardened through a process of heating and then rapid cooling or "quenching" by submersion in an oil or

It is desired to determine the DFT of the analogue signal x (t) = 25 cos(10 Πt)cos(400Πt). (a) Find the Nyquist rate of the signal.   (b) What is the record (signal) length i

The Colon Operator: If the values in the vector are regularly spaced, the colon operator is used to iterate through these values. For illustration, 1:5 results in all the inte