source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/rcone.m @ 37

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

Added original make3d

File size: 572 bytes
Line 
1function y = rcone(z,x,y)
2%RCONE Defines a rotated second order cone constraint ||z||^2<2xy, x+y>0
3%
4% Input
5%    z       : column vector SDPVAR object.
6%    h       : scalar double or SDPVAR object
7%
8% Example
9%
10%    F = set(rcone(z,x,y))
11%
12% See also  SET, CONE
13
14
15% Author Johan Löfberg
16% $Id: rcone.m,v 1.1 2004/06/17 08:39:54 johanl Exp $
17
18if size(z,2)>1
19  error('z must be a column vector')
20end
21
22if prod(size(x))>1
23  error('x must be a scalar')
24end
25if prod(size(y))>1
26  error('y must be a scalar')
27end
28
29try
30  y = [x;y;z];
31  y.typeflag = 5;
32catch
33  error(lasterr)
34end
Note: See TracBrowser for help on using the repository browser.