Tutorials/k0SDR/Tutorial14: fPlot.m

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