This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathranknumber.m
134 lines (134 loc) · 3.56 KB
/
ranknumber.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
switch x_direction
case 1
x_direction=1;
case 2
x_direction=2;
case 3
x_direction=-1;
case 4
x_direction=-2;
end
switch y_direction
case 1
y_direction=1;
case 2
y_direction=2;
case 3
y_direction=-1;
case 4
y_direction=-2;
end
switch z_direction
case 1
z_direction=1;
case 2
z_direction=2;
case 3
z_direction=-1;
case 4
z_direction=-2;
end
A=[abs(x_direction) abs(y_direction) abs(z_direction)];
if A(1)==A(2)
if A(2)==A(3)
[sel,ok]=listdlg(...
'liststring',{'X관벵Y,Y관벵Z';'X관벵Z,Z관벵Y';'Y관벵X,X관벵Z';'Y관벵Z,Z관벵X';'Z관벵X,X관벵Y';'Z관벵Y,Y관벵X'},...
'name','헝朞嶝寧淃',...
'okstring','횅땍',...
'cancelstring','혤句',...
'selectionmode','single',...
'listsize',[200 80]);
if ok==1
switch sel
case 1
ranknumber_XYZ
case 2
ranknumber_XZY
case 3
ranknumber_YXZ
case 4
ranknumber_YZX
case 5
ranknumber_ZXY
case 6
ranknumber_ZYX
end
else
CANCEL='cancel';
end
end
if A(2)~=A(3)
if abs(z_direction)==1
sel=questdlg('X、Y强관벵强?','헝朞嶝관벵밑溝','X관벵Y','Y관벵X','X관벵Y');
switch sel
case ''
CANCEL='cancel';
case 'X관벵Y'
ranknumber_ZXY
case 'Y관벵X'
ranknumber_ZYX
end
end
if abs(z_direction)==2
sel=questdlg('X、Y强관벵强?','헝朞嶝관벵밑溝','X관벵Y','Y관벵X','X관벵Y');
switch sel
case ''
CANCEL='cancel';
case 'X관벵Y'
ranknumber_XYZ
case 'Y관벵X'
ranknumber_YXZ
end
end
end
end
if A(1)~=A(2)
if A(1)==A(3)
if abs(y_direction)==1
sel=questdlg('X、Z强관벵强?','헝朞嶝관벵밑溝','X관벵Z','Z관벵X','X관벵Z');
switch sel
case ''
CANCEL='cancel';
case 'X관벵Z'
ranknumber_YXZ
case 'Z관벵X'
ranknumber_YZX
end
end
if abs(y_direction)==2
sel=questdlg('X、Z强관벵强?','헝朞嶝관벵밑溝','X관벵Z','Z관벵X','X관벵Z');
switch sel
case ''
CANCEL='cancel';
case 'X관벵Z'
ranknumber_XZY
case 'Z관벵X'
ranknumber_ZXY
end
end
end
if A(1)~=A(3)
if abs(x_direction)==1
sel=questdlg('Y、Z强관벵强?','헝朞嶝관벵밑溝','Y관벵Z','Z관벵Y','Y관벵Z');
switch sel
case ''
CANCEL='cancel';
case 'Y관벵Z'
ranknumber_XYZ
case 'Z관벵Y'
ranknumber_XZY
end
end
if abs(x_direction)==2
sel=questdlg('Y、Z强관벵强?','헝朞嶝관벵밑溝','Y관벵Z','Z관벵Y','Y관벵Z');
switch sel
case ''
CANCEL='cancel';
case 'Y관벵Z'
ranknumber_YZX
case 'Z관벵Y'
ranknumber_ZYX
end
end
end
end