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
Hello! How to cipher on Matlab the message consisting eight symbols. At first the message shares on blocks. Then in each of blocks shift of symbols is carried out. The initial text


Background Protein therapeutics are a major component of the biotechnology industry, with sales estimated in the range of ~$99bn annually (2011) and steady market growth. Many phar

Matlab Command Reference 1. Getting Help: The help command is used to find the functions and its syntax. Similarly, lookfor is used to find the functions or topics. For examp

Input in a for Loop: The script below repeats the process of prompting the user for a number, and echo printing the number (that means simply printing it back out). A for loop

In this lab, we implement vectors, script and functions with plot. Plot function is used to plot the point into graph. These plots are handled by handle (h).  These handle is used

Printing - matrices: For matrices, the MATLAB unwinds the matrix column by column. For illustration, consider the random 2 × 3 matrix as shown below: >> mat = randint(2,3,[

Example of Variables and assignment statements: The expression is computed and then that value is stored in the variable. For illustration, this is the way it would appear in


how to implement visual cryptography on grayscale images