From 18cf16645842482ef0d68e550359850cb010806b Mon Sep 17 00:00:00 2001 From: David Protzman Date: Sat, 23 Apr 2022 14:54:39 -0400 Subject: [PATCH] Put the ZC sequence generator back the way it was Using the new function messed things up for some resason --- matlab/updated_scripts/create_zc.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/updated_scripts/create_zc.m b/matlab/updated_scripts/create_zc.m index 18fa7a6..d25ac70 100644 --- a/matlab/updated_scripts/create_zc.m +++ b/matlab/updated_scripts/create_zc.m @@ -21,7 +21,9 @@ function [samples] = create_zc(fft_size, symbol_index) root = 147; end - zc = reshape(create_zc_seq(fft_size, root), [], 1); + % Would use MATLAB's zadoffChuSeq function, but Octave doesn't have that + % The logic below was tested against the MATLAB function + zc = reshape(exp(-1j * pi * root * (0:600) .* (1:601) / 601), [], 1); % Figure out how many guard carriers there should be (purposely ignoring DC here) guard_carriers = fft_size - 600;