-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlinesearch.m
66 lines (57 loc) · 1.53 KB
/
linesearch.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
nplot=5;
ymax=4;
figname='linesearch'
data=load('./nonorm/misfit/all_misfit');
[a b]=size(data);
fig=figure(1)
for i=1:a
if (data(i,1)==1)
subplot(1,nplot,1)
plot(data(i,2)*100,data(i,3),'linewidth',4)
xlim([0 4])
ylim([0 ymax])
xlabel('Step Length(%)')
ylabel('Misfit')
title('T = 20-40s')
daspect([2 1 1]);
set(gca,'xtick',[0:1:4])
hold on
subplot(1,nplot,2)
plot(data(i,2)*100,data(i,4),'linewidth',4)
hold on
xlim([0 4])
ylim([0 ymax])
title('T = 15-30s')
xlabel('Step Length(%)')
daspect([2 1 1]);
set(gca,'xtick',[0:1:4])
subplot(1,nplot,3)
plot(data(i,2)*100,data(i,5),'linewidth',4)
hold on
xlim([0 4])
ylim([0 ymax])
title('T = 10-20s')
xlabel('Step Length(%)')
daspect([2 1 1]);
set(gca,'xtick',[0:1:4])
subplot(1,nplot,4)
plot(data(i,2)*100,data(i,6),'linewidth',4)
hold on
xlim([0 4])
ylim([0 ymax])
title('T = 6-15s')
xlabel('Step Length(%)')
daspect([2 1 1]);
set(gca,'xtick',[0:1:4])
subplot(1,nplot,5)
plot(data(i,2)*100,data(i,end),'linewidth',4)
hold on
xlim([0 4])
ylim([0 ymax])
xlabel('Step Length(%)')
title('ALL')
daspect([2 1 1]);
set(gca,'xtick',[0:1:4])
end
end
saveas(fig,figname,'pdf')