autocorrelation.m

来自「Matlab 模拟 CDMA 直接扩频。m序列生成矩阵为p(x) = 1 + x」· M 代码 · 共 13 行

M
13
字号
function [ output ] = autocorrelation( input )%Get and Plot auto-correlation of the input array.%n = length(input);r = circonvt(input,fliplr(input),length(input));%k = (-n):n';%stem(k,r);stem(r)xlabel('Lag index');ylabel('Amplitude');%v = axis;%axis([-n n v(3:end)]);output = r;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?