forked from EricssonResearch/scream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_01.m
49 lines (47 loc) · 1.35 KB
/
test_01.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
function test_01(a,Tmax,Bmax,Cmax)
T = a(:,1);
K = 12;
%Tmax = 100.0;
if 1
figure(1);
subplot(2,1,1);
plot(T,a(:,2),T,a(:,3));
set(gca,'FontSize',12);grid on;
axis([0 Tmax 0 0.5]);grid on;
title('OWD [s] and OWD trend');
legend('OWD','OWD trend');
subplot(2,1,2);
plot(T,a(:,14));
set(gca,'FontSize',12);grid on;
title('RTP queue delay [s]');
xlim([0 Tmax]);grid on;
%axis([0 Tmax 0 1.0]);grid on;
xlabel('T [s]');
figure(2);
subplot(2,1,1);
plot(T,a(:,8),T,a(:,10));
set(gca,'FontSize',12);grid on;
axis([0 Tmax 0 Cmax]);grid on;
title('CWND & in flight [byte]');
subplot(2,1,2);
plot(T,a(:,15),T,a(:,16));
set(gca,'FontSize',12);grid on;
axis([0 Tmax 0 Bmax]);grid on;
title('Bitrate [bps]');
legend('Target bitrate','Target bitrate infl. point');
xlabel('T [s]');
end
figure(3);
subplot(2,1,1);
plot(T,a(:,2),T,a(:,14));
set(gca,'FontSize',12);grid on;
axis([0 Tmax 0 0.5]);grid on;
title('OWD [s] RTP queue delay');
legend('OWD','RTP queue');
subplot(2,1,2);
plot(T,a(:,15),T,a(:,16),T,a(:,17),T,a(:,18));
set(gca,'FontSize',12);grid on;
axis([0 Tmax 0 Bmax]);grid on;
title('Bitrate [bps]');
legend('Target','TargetI','Transmitted', 'Acked');
xlabel('T [s]');