-
Notifications
You must be signed in to change notification settings - Fork 0
/
plots1.m
executable file
·52 lines (35 loc) · 1.16 KB
/
plots1.m
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
clear
close all
clc
noise_levs = 0:2:20;
source_radius = 0:0.5:8;
fig = figure;
for radi=1:length(source_radius)
noiseP = zeros(1,length(noise_levs));
for n=1:length(noise_levs)
x = load("accVnoiseVradius/dist_rad"+source_radius(radi)+"u_snr"+noise_levs(n)+"db.mat",'distance');
noiseP(n) = mean(x.distance);
end
subplot(5,4,radi);
plot(noise_levs,noiseP);
xlabel('noise');
ylabel('perf.(dist.(m))');
title("rad: "+source_radius(radi)+"u");
axis([0 20 0 0.1442]);
end
saveas(fig,char("accVnoiseVradius/plots/snrVperf.fig"));
fig = figure;
for n=1:length(noise_levs)
radP = zeros(1,length(source_radius));
for radi=1:length(source_radius)
x = load("accVnoiseVradius/dist_rad"+source_radius(radi)+"u_snr"+noise_levs(n)+"db.mat",'distance');
radP(radi) = mean(x.distance);
end
subplot(3,4,n);
plot(source_radius,radP);
xlabel('rad(1u=1.87cm)');
ylabel('perf.(dist.(m))');
title("snr: "+noise_levs(n)+"db");
axis([0 8 0 0.1442]);
end
saveas(fig,char("accVnoiseVradius/plots/radVperf.fig"));