-
Notifications
You must be signed in to change notification settings - Fork 3
/
PLOTGPSHIP.m
38 lines (33 loc) · 1.16 KB
/
PLOTGPSHIP.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
function F = PLOTGPSHIP(XR,YR,YS,s2,names,figure_c)
% Plot results from simulation
% set(gcf,'Color','w');
[m,n]=size(YS);
for i=1:n
FileName=['figure',num2str(figure_c)];
f1=figure(figure_c);%figure('Name', names{i});
set(0,'DefaultFigureWindowStyle','docked')
plotgp(f1,XR,YR(:,i),YS(:,i), sqrt(s2(:,i)),names{i});
if figure_c==1 ||figure_c==5||figure_c==9
p=mtit('a)',...
'fontsize',22,...
'xoff',0,'yoff',0,'FontName','MS Reference Sans Serif');
elseif figure_c==2 ||figure_c==6||figure_c==10
p=mtit('b)',...
'fontsize',22,...
'xoff',-0.0,'yoff',0,'FontName','MS Reference Sans Serif');
elseif figure_c==3 ||figure_c==7||figure_c==11
p=mtit('c)',...
'fontsize',22,...
'xoff',0,'yoff',0,'FontName', 'MS Reference Sans Serif');
elseif figure_c==4 ||figure_c==8||figure_c==12
p=mtit('d)',...
'fontsize',22,...
'xoff',0,'yoff',0,'FontName', 'MS Reference Sans Serif');
end
% set(handle,'Position',[-100,0,0],'FontSize',18);
saveas(f1,FileName,'meta');
savefig(FileName);
figure_c=figure_c+1;
end
F=figure_c;
end