Tutorials/k0SDR/Tutorial14: fPlot.m
File fPlot.m, 386 bytes (added by , 9 years ago) |
---|
Line | |
---|---|
1 | clear all |
2 | close all |
3 | fid = fopen('zynq_rx_fft.bin') |
4 | ss = fread(fid,[257 2000],'uint32'); |
5 | fclose(fid) |
6 | |
7 | |
8 | %imagesc(ss.') |
9 | %imagesc(10*log(sqrt(ss.')/1000)) |
10 | |
11 | |
12 | s1 = ss(2:257,:); |
13 | s2 = fftshift(s1); |
14 | %imagesc(10*log(sqrt(s2.')/1000)) |
15 | |
16 | %imagesc(s2(:,1:200).') |
17 | %imagesc( 10*log(sqrt(s2(:,1:200).' ))) |
18 | imagesc( 10*log(sqrt(s2(:,200:3:800).' )) , [23 55]) |
19 | xlabel('frequency (bins)') |
20 | ylabel('time') |