summaryrefslogtreecommitdiff
path: root/gr-msdd6000/src/python-examples/playback_samples.m
diff options
context:
space:
mode:
Diffstat (limited to 'gr-msdd6000/src/python-examples/playback_samples.m')
-rw-r--r--gr-msdd6000/src/python-examples/playback_samples.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-msdd6000/src/python-examples/playback_samples.m b/gr-msdd6000/src/python-examples/playback_samples.m
new file mode 100644
index 000000000..332296e72
--- /dev/null
+++ b/gr-msdd6000/src/python-examples/playback_samples.m
@@ -0,0 +1,12 @@
+t = read_complex_binary('msdd.dat',10000000);
+
+fftsize=256;
+w = [0:pi/fftsize:pi];
+
+for i = 0:length(t)/fftsize
+ fftdata = fft(i*fftsize:i*fftsize+fftsize);
+ clear plot;
+ plot(w,fftdata);
+endfor
+
+pause;