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

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

Added original make3d

File size: 457 bytes
Line 
1function x = unique(x)
2%UNIQUE (overloaded)
3
4% Author Johan Löfberg
5% $Id: unique.m,v 1.1 2006/08/10 18:00:23 joloef Exp $
6
7if min(x.dim(1),x.dim(2))~=1
8    error('UNIQUE currently only supported for vectors')
9end
10
11base = x.basis;
12vars = x.lmi_variables;
13[new_base,i,j] = unique(base,'rows');
14
15x.basis = new_base;
16if x.dim(2)==1
17    x.dim(1) = size(new_base,1);
18else
19    x.dim(2) = size(new_base,1);
20end
21% Reset info about conic terms
22x.conicinfo = [0 0];
23
Note: See TracBrowser for help on using the repository browser.