?? cwjam.m
字號:
% Jamming of 31 Bit Shift Register Sequence
% with CW Noise
% -----------------------------------------
clear;clc;clf;
% Generate time vector
t=13/31*[1:1:61];
% Code order is 31-bit Maximal Length Sequence
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];
% CW-jamming in baseband with correct carrier
y=ones(1,31);
% Noise jamming in baseband with correct carrier
z=rand(1,31);
% Correlation of signal and jamming
acf1=xcorr(x);
acf2=xcorr(x,y);
acf3=xcorr(x,z);
effmv2=sum(acf2.*conj(acf2))/61;
effmv3=sum(acf3.*conj(acf3))/61;
% Plot jamming effects
subplot(211),plot(t,abs(acf1),':',t,abs(acf2));grid;
xlabel('Time in microsecs');
ylabel('Correlator Voltage Output');
title(['Pulse Compression Jamming With CW Jam Effect=', ...
num2str(effmv2)]);
text(14,30,' No Jamming');
text(17,7,' Jammed Waveform');
subplot(212),plot(t,abs(acf1),':',t,abs(acf3));grid;
xlabel('Time in microsecs');
ylabel('Correlator Voltage Output');
title(['Pulse Compression Jamming with Noise Jam Effect=', ...
num2str(effmv3)]);
text(14,30,'No Jamming');
text(17,7,'Jammed Waveform');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -