source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/eq.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 341 bytes |
Line | |
---|---|
1 | function y = eq(X,Y) |
2 | %EQ (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: eq.m,v 1.3 2006/07/25 12:57:08 joloef Exp $ |
6 | |
7 | if isa(X,'ndsdpvar') |
8 | X = sdpvar(X); |
9 | elseif isa(X,'double') |
10 | X = X(:); |
11 | end |
12 | |
13 | if isa(Y,'ndsdpvar') |
14 | Y = sdpvar(Y); |
15 | elseif isa(Y,'double') |
16 | Y = Y(:); |
17 | end |
18 | |
19 | try |
20 | y = constraint(X,'==',Y); |
21 | catch |
22 | error(lasterr) |
23 | end |
Note: See TracBrowser
for help on using the repository browser.