📄 test.m
字号:
%% Made by Zheng Xiao (052815 05b04)%% Group Member: Ji Yue, Sun Xin, Zheng Xiao%clear% Generate Signal%M = 16; %-the number of Sample per Period in input signalN = 32; %-the number of Sample per Period in BPSK Modulated signalM = 64; %-the number of Sample per Period in input signalP1 = [0 5 7 8 9 13 15];P2 = [0];%tk = 0:1/M:(1024/M);%input = sin(2*pi*tk) + cos(pi*tk);%ratio = max(input);%input = input/ratio;% A-law PCM encode% Lengthen PCM code%%pcmCode = [1];original=[1]; % User CodenOriginal = length(original);pcmCode=expand_bit(original);%must be 64xN lengthkey1 = genM(M,P1);%autocorrelation(genBipolar(key1)); % 画图: generated m-sequencem = genBipolar(genM(6000,P1));%!!!!!!!!!!!!!!!!!subplot(2,1,1)stem(xcorr(m,m))subplot(2,1,2)autocorr(m);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -