estimate the autocorrelation function of white gaussian noise with variance 1
Show older comments
estimate the autocorrelation function of white gaussian noise with variance 1
2 Comments
Satadru Mukherjee
on 25 Oct 2019
Edited: Satadru Mukherjee
on 25 Oct 2019
t=0:1000;
x=randn(1,length(t));
subplot(2,1,1);
plot(t,x);
ylabel('Amplitude');
xlabel('Time sample');
title('Gaussian noise signal');
t2=-fliplr(t);
nl=min(t)+min(t2);
nh=max(t)+max(t2);
t=nl:1:nh;
y=xcorr(x,x);
subplot(2,1,2);
plot(t,y);
ylabel('Correlation output');
xlabel('Delay');
title('Autocorrelation of AWGN');
hsan trifa
on 27 Feb 2020
Thanks dude ! it was helpfull <3
Answers (1)
Wayne King
on 4 Dec 2011
0 votes
Use randn() to generate the WGN sequence and xcorr() to estimate the autocorrelation sequence.
See the help for both functions.
Categories
Find more on Signal Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!