Add Random PRI
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user