-
Notifications
You must be signed in to change notification settings - Fork 2
/
plotDD.m
75 lines (72 loc) · 2.11 KB
/
plotDD.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
function plotDD(DD_chk, DD_amb, RxTime, ELEV, sat, DD)
% plots the DD incuding cleaned by they ambiguities as zero mean against
% time and elevation
%
% [IN]
% DD_chk epochs x 32 OMC DD (checked and corrected)
% DD_amb epochs x 32 Ambiguities of OMC DD
% RxTime epochs x 1 Receiver clock time vector in seconds of day
% ELEV epochs x 32 Elevations of Satellites in view [radiants]
%
% [OUT]
figure()
subplot(1,2,1)
plot(RxTime, DD(:,sat));
ylabel('OMC(DD) GPS L1 [m]');
xlabel('GPS Time [sec]');
title('DD against time(for PRN 4)');
grid on
subplot(1,2,2)
plot(ELEV(:,sat), DD(:,sat));
ylabel('OMC(DD) GPS L1 [m]');
xlabel('Eleveation [degree]');
title('DD against elevation(for PRN 4)');
grid on
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure()
subplot(1,2,1)
plot(RxTime, DD_chk(:,sat));
ylabel('OMC(DD_chk) GPS L1 [m]');
xlabel('GPS Time [sec]');
title('corrected DD against time(for PRN 4)');
grid on
subplot(1,2,2)
plot(ELEV(:,sat), DD_chk(:,sat));
ylabel('OMC(DD_chk) GPS L1 [m]');
xlabel('Eleveation [degree]');
title('corrected DD against elevation(for PRN 4)');
grid on
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure()
subplot(1,2,1)
% DD residuals against time
plot(RxTime, DD_amb(:,sat));
ylabel('OMC(DD_amb) GPS L1 [m]');
xlabel('GPS Time [sec]');
title ('Ambiguties against time(for PRN 4)');
grid on
subplot(1,2,2)
% DD residuals against elevation
plot(ELEV(:,sat),DD_amb(:,sat));
ylabel('OMC(DD_amb) GPS L1 [m]');
xlabel('Eleveation [degree]');
title('Ambiguties against elevation(for PRN 4)')
grid on
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure()
subplot(1,2,1)
% DD residuals against time
plot(RxTime, DD_chk(:,sat) - DD_amb(:,sat));
ylabel('OMC(DD_chk - DD_amb) GPS L1 [m]');
xlabel('GPS Time [sec]');
title ('residuals against time(for PRN 4)');
grid on
subplot(1,2,2)
% DD residuals against elevation
plot(ELEV(:,sat), DD_chk(:,sat) - DD_amb(:,sat));
ylabel('OMC(DD_chk - DD_amb) GPS L1 [m]');
xlabel('Eleveation [degree]');
title('residuals against elevation(for PRN 4)')
grid on
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end