Update Radar simulation

This commit is contained in:
Ksyer
2024-02-21 16:41:12 +08:00
parent ec0f95c639
commit f357a0c3a7
20 changed files with 219 additions and 187 deletions
+13
View File
@@ -0,0 +1,13 @@
function y = R_d_func(t)
global c f_n T_r;
ti = t - (2/c) * r(t);
p = rem(ti, T_r); % p = t - nT_r
n = round((ti - p) / T_r);
if (n < 0)
n = 0;
end
y = R_x_func(t) * exp(1j * -2 * pi * f_n(n + 1) * (t - n * T_r));
end