-
Notifications
You must be signed in to change notification settings - Fork 2
/
residue_his.m
110 lines (105 loc) · 2.71 KB
/
residue_his.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% purpose:draw residue histogram
% 2021/1/6 yuqinghe
% file:insar_d_forusgsandmain.dat
% field: latitude longitude observation resiual prediction u_north u_east u_up
file=load('insar_d_forusgsandmain.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');
% no 2
file=load('insar_d_forusgsandsub.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');
% no 3 usgsandmain
file=load('insar_d_forusgsandmain_USGSdeepslip.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');
% no 4 Insar崗뙤꿔
file=load('insar_d_new0615.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');
% no 4 Insar데뙤꿔
file=load('insar_d_new1109_50km.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');
% no 5 USGS데뙤꿔
file=load('insar_d_forusgs.dat');
residual=file(:,4);
figure;
hist(residual,5,'color','blue');
h=findobj(gca,'Type','patch');
set(h,'facecolor','b');%맣긴料榴暠奈
[n,y] = hist(residual,5);
hold on;
plot(y,n);
% bar(y,n,0.5);
for i = 1:length(y)
text(y(i),n(i)+50,num2str(n(i)),'color','black');
end
title('residue histogram','FontSize',15);
xlabel('residual (cm)');
ylabel('sample count');