HW2 - First, use stationary random data. Then, use...

HOMEWORK #2 1. In the Matlab script “ensemble_vs_time_avg.m” discussed in class, is the ensemble average technique using the sampling rate ( 1 8192 sec. dt = ) and number of samples in each block (8192) always effective in eliminating the random noise component in the signal, regardless of the frequency and initial phase angle of the sine component at time t=0? In particular, what is the requirement for the sinusoid frequency for the ensemble average denoising scheme to work? Can you generalize this result by making a statement about the requirement on the number of cycles in each sample block? (2 points) 2. Write a Matlab function to perform the reverse arrangement test. The function should take as input a random variable (i.e., a vector x ) and split it into a user defined number of sample records, Nrec , of equal length and return the total # of reversals of the mean-square value of each record. Validate your code using the data in Ex. 4.4. Then use real data (or Matlab-generated data) to test your code.

This is the end of the preview. Sign up
to
access the rest of the document.