summaryrefslogtreecommitdiff
path: root/gr-radar-mono/src/utils/read_avg.m
diff options
context:
space:
mode:
Diffstat (limited to 'gr-radar-mono/src/utils/read_avg.m')
-rw-r--r--gr-radar-mono/src/utils/read_avg.m22
1 files changed, 0 insertions, 22 deletions
diff --git a/gr-radar-mono/src/utils/read_avg.m b/gr-radar-mono/src/utils/read_avg.m
deleted file mode 100644
index 7df3d4cdd..000000000
--- a/gr-radar-mono/src/utils/read_avg.m
+++ /dev/null
@@ -1,22 +0,0 @@
-function avg = read_avg(name, vlen)
-
- f = fopen(name, "rb");
- s = zeros(1, vlen);
- n = 0;
-
- while (!feof(f))
- t = fread(f, [2, vlen], "float");
- if (size(t) == [2, vlen])
- n = n+1;
- c = t(1,:)+t(2,:)*j;
- if (n > 10)
- s = s+c;
- endif
- endif
- endwhile
-
- avg = s/(n-1);
-
- fclose(f);
-
-endfunction