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