summaryrefslogtreecommitdiff
path: root/gr-radar/src/lib/plot_rd.m
blob: 166da020e529d9f8851bccdbf2bbd26f66896f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
filename="xambi.out"

ambdata=read_float_binary(filename);

fftsize=512
nranges = prod(size(ambdata))/fftsize

ambdata=reshape(ambdata,fftsize,nranges);
% ambdata=fftshift(ambdata,1);

% colormap(cool(256));
colormap(rainbow(256));

d = 10*log10(ambdata);
min(min(d))
max(max(d))
imagesc(d, 2.0);