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

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

Added original make3d

File size: 357 bytes
Line 
1function X = subsasgn(X,I,Y)
2% SUBSASGN (overloaded)
3
4% Author Johan Löfberg
5% $Id: subsasgn.m,v 1.2 2006/07/13 20:37:30 joloef Exp $
6
7base = reshape(1:size(X.basis,1),X.dim);
8base = subsref(base,I);
9
10if isa(Y,'ndsdpvar')
11    Y = sdpvar(Y);
12elseif isa(Y,'double')
13    Y = Y(:);
14end
15
16dim = X.dim;
17X = sdpvar(X);
18X(base) = Y;
19X = reshape(X,dim);
20X = clean(X);
Note: See TracBrowser for help on using the repository browser.