?? autocorrelation values.m
字號:
clear all
close all
n=0:999;
noise_mu=0; % mean
noise_var=1; % variance
x_1=randn(size(n)).*sqrt(abs(noise_var))+noise_mu;
for k=1:10
R(k) = sum(x_1(1:end-k+1) .* x_1(k:end))/length(n);
end
stem(abs(R))
xlabel('n'); ylabel('autocorrelation values');
title('autocorrelation values of the generated 1000 samples');
axis([-1 11 0 2]);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -