-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQ_fun.m
34 lines (34 loc) · 1013 Bytes
/
Q_fun.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
function O = Q(I)
if(I==logical([0 0 0 0]))
O = logical([1 0 0 1]); end
if(I==logical([0 0 0 1]))
O = logical([1 1 1 0]); end
if(I==logical([0 0 1 0]))
O = logical([0 1 0 1]); end
if(I==logical([0 0 1 1]))
O = logical([0 1 1 0]); end
if(I==logical([0 1 0 0]))
O = logical([1 0 1 0]); end
if(I==logical([0 1 0 1]))
O = logical([0 0 1 0]); end
if(I==logical([0 1 1 0]))
O = logical([0 0 1 1]); end
if(I==logical([0 1 1 1]))
O = logical([1 1 0 0]); end
if(I==logical([1 0 0 0]))
O = logical([1 1 1 1]); end
if(I==logical([1 0 0 1]))
O = logical([0 0 0 0]); end
if(I==logical([1 0 1 0]))
O = logical([0 1 0 0]); end
if(I==logical([1 0 1 1]))
O = logical([1 1 0 1]); end
if(I==logical([1 1 0 0]))
O = logical([0 1 1 1]); end
if(I==logical([1 1 0 1]))
O = logical([1 0 1 1]); end
if(I==logical([1 1 1 0]))
O = logical([0 0 0 1]); end
if(I==logical([1 1 1 1]))
O = logical([1 0 0 0]); end
end