Program_2_1 - pause for n = 1:50; d = rand(R,1)-0.5; x = s...

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

View Full Document Right Arrow Icon
% Program 2_1 % Generation of the ensemble average % R = 50; m = 0:R-1; s = 2*m.*(0.9.^m); % Generate the uncorrupted signal d = rand(R,1)-0.5; % Generate the random noise x1 = s+d'; stem(m,d); xlabel('Time index n');ylabel('Amplitude'); title('Noise');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: pause for n = 1:50; d = rand(R,1)-0.5; x = s + d'; x1 = x1 + x; end x1 = x1/50; stem(m,x1); xlabel('Time index n');ylabel('Amplitude'); title('Ensemble average');...
View Full Document

This note was uploaded on 12/11/2009 for the course DCC 34 taught by Professor Antonio during the Spring '09 term at Pontifical Catholic University of Peru.

Ask a homework question - tutors are online