source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@lmi/and.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 579 bytes
Line 
1function sys = and(X,Y)
2%AND Overloaded
3%   
4%   See also   LMI
5
6% Author Johan Löfberg
7% $Id: and.m,v 1.3 2005/02/04 10:10:26 johanl Exp $
8
9% TODO : Check if binaries etc
10if isa(X,'sdpvar')
11    X = true(X);
12end
13if isa(Y,'sdpvar')
14    Y = true(Y);
15end
16
17if isa(X,'constraint')
18    X = set(X);
19end
20if isa(Y,'constraint')
21    Y = set(Y);
22end
23
24nX = size(X.clauses,2); % Number of clauses in X
25nY = size(Y.clauses,2); % Number of clauses in Y
26sys = X;
27% Add the two objects (append Y to X)
28for i = 1:nY;   
29    sys.clauses{i+nX} = Y.clauses{i};   
30end
31sys.LMIid = [X.LMIid Y.LMIid];
Note: See TracBrowser for help on using the repository browser.