Skip to content
Snippets Groups Projects
Commit 179872b0 authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Using fft_reorder() for proper fft bin representation

parent 0d4823e0
Branches
No related tags found
No related merge requests found
from common import * from common import *
from common_dsp import *
from file_io import * from file_io import *
import os import os
import matplotlib import matplotlib
...@@ -23,7 +24,7 @@ complex_list = rec_file_to_complex(REC_FILE, complex_width=WPFB_OUT_DATA_WIDTH) ...@@ -23,7 +24,7 @@ complex_list = rec_file_to_complex(REC_FILE, complex_width=WPFB_OUT_DATA_WIDTH)
f = deinterleave(complex_list[5], 2, 1)[0] f = deinterleave(complex_list[5], 2, 1)[0]
T = 1.0 / NOF_CHANNELS T = 1.0 / NOF_CHANNELS
yf = f yf = fft_reorder(f)
xf = range(NOF_CHANNELS) xf = range(NOF_CHANNELS)
xf = fftshift(xf) xf = fftshift(xf)
yplot = fftshift(yf) yplot = fftshift(yf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment