Add Random PRI

This commit is contained in:
Ksyer
2024-07-16 15:55:41 +08:00
parent 8c906b6618
commit 95c0eb89b8
3 changed files with 125 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
clc; clear; close all;
parameters;
global trail_times;
[s_T_narrow, A] = narrow_signal_model(t, 1);
A = A / 10;
AH = A';
H0 = [];
for T = 1: trail_times
x = zeros(10, 1);
% x(4) = 0.8;
y = A * x;
y_noise = awgn(y, 15);
x_hat = AH * y_noise;
H0 = [H0 x_hat'];
end
H1 = [];
for T = 1: trail_times
x = zeros(10, 1);
x(4) = 0.8;
y = A * x;
y_noise = awgn(y, 15);
x_hat = AH * y_noise;
H1 = [H1 x_hat(4)];
end
% figure; histfit(real(H0));
% figure; histfit(real(H1));
figure;
plot()