Program_2_8 - y = x + d; % Generate the noise-corrupted...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Program 2_8 % Computation of Autocorrelation of a % Noise Corrupted Sinusoidal Sequence % N = 96; n = 1:N; x = cos(pi*0.25*n); % Generate the sinusoidal sequence d = rand(1,N) - 0.5; % Generate the noise sequence
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: y = x + d; % Generate the noise-corrupted sinusoidal sequence r = conv(y, fliplr(y)); % Compute the correlation sequence k = -28:28; stem(k, r(68:124)); xlabel('Lag index'); ylabel('Amplitude');...
View Full Document

Ask a homework question - tutors are online