pchalf.m

来自「此程序给出了不同情况的雷达距离测量仿真平台」· M 代码 · 共 32 行

M
32
字号
% Pulse Compression Half Code Repeater Jamming
% --------------------------------------------

clear;clf;clc;

% Time Vector

t=13/31*[1:1:61];

% Maximal Length 31 Bit Sequential Code

x=[1 -1 1 1 -1 1 -1 1 -1 -1 1 1 1 1 -1 -1 -1 1 1 -1 ...
-1 1 -1 -1 -1 -1 -1 1 -1 1 1];

% Half Code Length

y=[1 -1 -1 1 1 1 1 -1 -1 -1 1 1 -1 -1 1];

% Jamming uses two halfs plus 1 to fill

z=[y y 1];

akf1=xcorr(x);
akf2=xcorr(x,z);

% Plot Jamming Effects

plot(t,abs(akf1),':',t,abs(akf2));grid;
xlabel('Time');ylabel('Correlator Voltage Output');
title(['Repeater Jamming with Half Pulses']);
text(14,30,'No Jamming');
text(18,14,'Repeater Jamming');

⌨️ 快捷键说明

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