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

Development modeling, i have a project in matlab : modeling of development ...

i have a project in matlab : modeling of development of an outer organ (hand,leg and head) i don''t know how to do it, my teacher said me, i have to make it easy, so, it means i s

Steady-state conduction equation, Problem: Consider a trapezoidal piece of...

Problem: Consider a trapezoidal piece of polymer film as shown below. The parallel sides of the trapezoid are insulated and the temperature of the bottom and diagonal sides are f

Create a correlation matrix for variables in the data, In MATLAB, create a ...

In MATLAB, create a correlation matrix for all of the variables in the data (it should be an 8x8 matrix). To do this you will have to convert the "southern"variable into a number.

Write the iterative newton root fi nding function, Write the iterative Newt...

Write the iterative Newton root nding function from lecture to be recursive. The function declaration should be root = newtonRec(f,df,x,tol). The inputs to the function are: ?

Write a matlab function, Write a MATLAB function called pgm which calculate...

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 estim

Control system, 1. Design a suitable phase-lead controller. You should expl...

1. Design a suitable phase-lead controller. You should explain in detail how your design has been developed. Your solution should include Bode plots constructed both manually and

Diode modelling, how to model a diode in matlab given data

how to model a diode in matlab given data

display in gui, how to display any words to the editto

how to display any words to the edittor

Calculate the signal-to-noise ratio, Use the MATLAB randn function to gener...

Use the MATLAB randn function to generate 1000 points for x. Generate the output of the unknown system with the ?lter function and b=[1232 1] and a=[1]. Normalise the ?lter output

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