-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnor.m
47 lines (42 loc) · 851 Bytes
/
nor.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
function Z = nor(Z1,Z2)
% and - overloads & operator, computes the nor of two logical zonotopes
%
% Syntax:
% Z = nor(Z1,Z2)
%
% Inputs:
% Z1 - zonotope
% Z2 - zonotope,
%
% Outputs:
% Z - zonotope object enclosing the and zonotope
%
% Example:
% zono1 = zonotope([4 2 2;1 2 0]);
% zono2 = zonotope([3 1 -1 1;3 1 2 0]);
%
% res = nor(zono1,zono2)
%
% figure
% hold on
% plot(zono1,[1,2],'r');
% plot(zono2,[1,2],'b');
% plot(res,[1,2],'g');
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
% See also: none
% Author: Amr Alanwar
% Written: 8-Sept-2022
% Last update:
%
%
% Last revision: ---
%------------- BEGIN CODE --------------
% Z = Z1;
Z = not(or(Z1,Z2));
%Z =unique(Z);
end
%------------- END OF CODE --------------