From df18420eaf25144b8cd5a8b1fa6719184a805c2a Mon Sep 17 00:00:00 2001 From: David Protzman Date: Tue, 26 Apr 2022 21:12:32 -0400 Subject: [PATCH] Fixed bug where floating point samples came back as 'single' This would cause lots of functions to fail since a lot of the dsp functions rely on doubles --- matlab/updated_scripts/read_complex_floats.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/updated_scripts/read_complex_floats.m b/matlab/updated_scripts/read_complex_floats.m index 41735ad..4996787 100644 --- a/matlab/updated_scripts/read_complex_floats.m +++ b/matlab/updated_scripts/read_complex_floats.m @@ -6,5 +6,5 @@ % @return samples Column vector of `sample_count` complex samples (might be less if not enough samples are avilable % in the provided file function [samples] = read_complex_floats(file_path, sample_offset, sample_count) - samples = read_complex(file_path, sample_offset, sample_count, 'single'); + samples = double(read_complex(file_path, sample_offset, sample_count, 'single')); end