-
Notifications
You must be signed in to change notification settings - Fork 0
/
plottingfixed.m
69 lines (42 loc) · 1.33 KB
/
plottingfixed.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
fnmsd = ['msdl2.fig ';'msdl5.fig ';'msdl8.fig ';'msdl5n.fig ';'gmsd.fig ' ];
fnmse = ['msel2.fig ';'msel5.fig ';'msel8.fig ';'msel5n.fig ';'gmse.fig ' ];
fnmsdev = ['msdevl2.fig ';'msdevl5.fig ';'msdevl8.fig ';'msdevl5n.fig';'gmsdev.fig ' ];
fn = [fnmsd ;fnmse ;fnmsdev];
fig1 = open(strtrim(fn(1,:)));
fig2 = open(strtrim(fn(2,:)));
ax1 = get(fig1, 'Children');
ax2 = get(fig2, 'Children');
for i = 1 : numel(ax2)
ax2Children = get(ax2(i),'Children');
copyobj(ax2Children, ax1(i));
end
close(fig2)
saveas(gcf,strtrim(fn(5,:)), 'fig')
close(fig1)
open(strtrim(fn(5,:)));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fig1 = open(strtrim(fn(6,:)));
fig2 = open(strtrim(fn(7,:)));
ax1 = get(fig1, 'Children');
ax2 = get(fig2, 'Children');
for i = 1 : numel(ax2)
ax2Children = get(ax2(i),'Children');
copyobj(ax2Children, ax1(i));
end
close(fig2)
saveas(gcf,strtrim(fn(10,:)), 'fig')
close(fig1)
open(strtrim(fn(10,:)));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fig1 = open(strtrim(fn(11,:)));
fig2 = open(strtrim(fn(12,:)));
ax1 = get(fig1, 'Children');
ax2 = get(fig2, 'Children');
for i = 1 : numel(ax2)
ax2Children = get(ax2(i),'Children');
copyobj(ax2Children, ax1(i));
end
close(fig2)
saveas(gcf,strtrim(fn(15,:)), 'fig')
close(fig1)
open(strtrim(fn(15,:)));