source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/not.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 404 bytes |
Line | |
---|---|
1 | function varargout = not(varargin) |
2 | %NOT (overloaded) |
3 | % |
4 | % y = not(x) |
5 | % y = ~x |
6 | % |
7 | % Short for y = 1-x. |
8 | % |
9 | % It is assumed that x is a binary variable (either explicitely declared |
10 | % using BINVAR, or constrained using BINARY.) |
11 | % |
12 | % See also SDPVAR/OR, SDPVAR/AND, BINVAR, BINARY |
13 | |
14 | % Author Johan Löfberg |
15 | % $Id: not.m,v 1.6 2005/02/10 12:26:38 johanl Exp $ |
16 | |
17 | varargout{1}=1-varargin{1}; |
Note: See TracBrowser
for help on using the repository browser.