검색어 입력폼

# [통신이론] Simulation of Autocorrelation function for AWGN

저작시기 2005.05 | 등록일 2005.06.07 한컴오피스 (hwp) | 2페이지 | 가격 1,000원

## 소개글

AWGN 의 Autocorrelation 을 Matlab을 사용해
시뮬레이션한 보고서입니다.

## 목차

1) Using (5.6.1)
2) Using a Random Code (using -1,1)

## 본문내용

- Source Code-

% This M-file program simulates the Autocorrelation function of AWGN
clear
Uniform1 = rand(1000,1);
Uniform2 = rand(1000,1);
% Gaussian Noise Generation
for i=1:1:1000,
Gaussian(i) = sqrt(-2*log(Uniform1(i)))*cos(2*pi*Uniform2(i));
end
%hist(Gaussian,100)
acf(1:1000)=0;
% Calculating the Autocorrlation function
for i=1:1:1000,
for j=1:1:i,
acf(i) = acf(i) + Gaussian(j) * Gaussian(1000-i+j);
end
end
for i=1001:1:1999,
acf(i) = acf(2000-i);
% This M-file program simulates the Autocorrelation function of Random Code
clear
Uniform = rand(1000,1);
% Random Code Generation
for i=1:1:1000,
if Uniform(i) > 0.5
RandomCode(i) = 1;
else
RandomCode(i) = -1;
end
end
%hist(RandomCode)
acf(1:1000)=0;
% Calculating the Autocorrlation function
for i=1:1:1000,
for j=1:1:i,
acf(i) = acf(i) + RandomCode(j) * RandomCode(1000-i+j);
end
end
for i=1001:1:1999,

없음