-
Notifications
You must be signed in to change notification settings - Fork 0
/
createENfigure.m
82 lines (59 loc) · 1.82 KB
/
createENfigure.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
function createENfigure(th, tx, ty, mi)
%CREATEENFIGURE(th, tx, ty, mi)
% Create a set of figures with labels in English.
% Arguments:
% th: vector of theta data
% tx: vector of x data
% ty: vector of y data
% mi: vector of MI data
% Auto-generated by MATLAB on 05-Jan-2016 15:23:58
% Create figure
figure1 = figure('Name','Patient 1: Parameters accepted');
% Create subplot
subplot1 = subplot(2,2,1,'Parent',figure1);
box(subplot1,'on');
hold(subplot1,'all');
% Create plot
plot(th,'Parent',subplot1,'LineWidth',2);
% Create title
title('Angle of Rotation','FontWeight','bold','FontSize',20);
% Create xlabel
xlabel('Iterations','FontWeight','bold','FontSize',14);
% Create ylabel
ylabel('Angle','FontWeight','bold','FontSize',14);
% Create subplot
subplot2 = subplot(2,2,2,'Parent',figure1);
box(subplot2,'on');
hold(subplot2,'all');
% Create plot
plot(tx,'Parent',subplot2,'LineWidth',2);
% Create title
title('Translation in X axis','FontWeight','bold','FontSize',20);
% Create xlabel
xlabel('Iterations','FontWeight','bold','FontSize',14);
% Create ylabel
ylabel('Position','FontWeight','bold','FontSize',14);
% Create subplot
subplot3 = subplot(2,2,3,'Parent',figure1);
box(subplot3,'on');
hold(subplot3,'all');
% Create plot
plot(ty,'Parent',subplot3,'LineWidth',2);
% Create title
title('Translation in Y axis','FontWeight','bold','FontSize',20);
% Create xlabel
xlabel('Iterations','FontWeight','bold','FontSize',14);
% Create ylabel
ylabel('Position','FontWeight','bold','FontSize',14);
% Create subplot
subplot4 = subplot(2,2,4,'Parent',figure1);
box(subplot4,'on');
hold(subplot4,'all');
% Create plot
plot(mi,'Parent',subplot4,'LineWidth',2);
% Create title
title('Mutual Information','FontWeight','bold','FontSize',20);
% Create xlabel
xlabel('Iterations','FontWeight','bold','FontSize',14);
% Create ylabel
ylabel('MI');