From 6c875b50142a602de0f4cb6bf209dd7357af7fa8 Mon Sep 17 00:00:00 2001 From: David Protzman Date: Sun, 24 Apr 2022 16:45:07 -0400 Subject: [PATCH] Had to change dimensions on freq correction vector This happened due to a change in the read_complex_floats function --- matlab/updated_scripts/extract_bursts_from_file.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/updated_scripts/extract_bursts_from_file.m b/matlab/updated_scripts/extract_bursts_from_file.m index 5373ec6..b36bb78 100644 --- a/matlab/updated_scripts/extract_bursts_from_file.m +++ b/matlab/updated_scripts/extract_bursts_from_file.m @@ -43,7 +43,7 @@ function [bursts] = extract_bursts_from_file(input_path, sample_rate, frequency_ burst_sample_count = (padding * 2) + (long_cp_len * 2) + (short_cp_len * 7) + (fft_size * 9); % Pre-calculate the frequency offset adjustment vector as this will be constant for all bursts - freq_offset_vec = reshape(exp(freq_offset_constant * [1:burst_sample_count]), 1, []); + freq_offset_vec = reshape(exp(freq_offset_constant * [1:burst_sample_count]), [], 1); % It's not known right away if the first and last bursts are going to be clipped because there aren't enough % samples. So, as filthy as it is, use concatenation to build up a list of starting indices that will definitely