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

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

Added original make3d

File size: 530 bytes
Line 
1function X = subsasgn(X,I,Y)
2%SUBASGN (overloaded)
3
4% Author Johan Löfberg
5% $Id: subsasgn.m,v 1.1 2005/05/25 12:15:04 joloef Exp $   
6
7try
8    if strcmp('()',I.type)
9        X_is_spdvar = isa(X,'sdpvar');
10        Y_is_spdvar = isa(Y,'sdpvar');
11        if any(I.subs{1} <=0)
12            error('Index into matrix is negative or zero.');
13        end
14        i = I.subs{1};
15        j = I.subs{2};
16        X.blocks{i,j} = Y;
17       
18    else
19        error('Reference type not supported');
20    end
21   
22catch
23    error(lasterr)
24end
25
Note: See TracBrowser for help on using the repository browser.