Add Radar simulation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
function y = T_x_func(t)
|
||||
global T_r T_p f_n;
|
||||
p = rem(t, T_r); % p = t - nT_r
|
||||
n = round((t - p) / T_r);
|
||||
|
||||
if (p > T_p)
|
||||
y = 0;
|
||||
elseif (p <= 0)
|
||||
y = 0;
|
||||
else
|
||||
y = exp(1j * 2 * pi * f_n(n + 1) * p);
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user