-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlogicalZonotope.m
63 lines (50 loc) · 1.24 KB
/
logicalZonotope.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
%classdef (InferiorClasses = {?intervalMatrix, ?matZonotope}) logicalZonotope
classdef logicalZonotope
% zonotope - Object and Copy Constructor
%
% Syntax:
% obj = zonotope(c,G)
% obj = zonotope(Z)
%
% Inputs:
% c - center vector
% G - generator matrix
% Z - center vector and generator matrix Z = [c,G]
%
% Outputs:
% obj - generated zonotope object
%
% Example:
% c = [1;1];
% G = [1 1 1; 1 -1 0];
% zono = zonotope(c,G);
% plot(zono,[1,2],'r');
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
% See also: interval, polytope
% Author: Amr Alanwar
% Written: 16-October-2022
% Last update: 16-October-2022
%
% Last revision: ---
%------------- BEGIN CODE --------------
properties (SetAccess = protected, GetAccess = public)
c = [];
G = {};
end
methods
function Obj = logicalZonotope(varargin)
Obj.c = varargin{1};
Obj.G = varargin{2};
end
end
methods (Static = true)
%Z = generateRandom(varargin) % generate random zonotope
Z = enclosePoints(points,varargin) % enclose point cloud with zonotope
Z = encloseMany(Zcell)
end
end
%------------- END OF CODE --------------