summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-utils/octave/read_cshort_binary.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-utils/octave/read_cshort_binary.m b/gr-utils/octave/read_cshort_binary.m
index 149b6ca88c..203d908d8b 100644
--- a/gr-utils/octave/read_cshort_binary.m
+++ b/gr-utils/octave/read_cshort_binary.m
@@ -42,5 +42,8 @@ function cv = read_cshort_binary (filename, count)
else
v = fread (f, count, 'short');
fclose (f);
- cv = v(1:2:end)+v(2:2:end)*j;
+ v_r = v(1:2:end);
+ v_i = v(2:2:end)*j;
+ clear v;
+ cv = v_r+v_i;
end