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

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

Added original make3d

File size: 567 bytes
Line 
1function varargout = recover(lmi_variables)
2%RECOVER Create SDPVAR object using variable indicies
3
4% Author Johan Löfberg
5% $Id: recover.m,v 1.7 2005/02/28 15:49:44 johanl Exp $
6
7if isempty(lmi_variables)
8    varargout{1} = [];
9else
10    n = length(lmi_variables);
11    i=1:n;
12    if nargout <= 1
13        varargout{1} = sdpvar(n,1,[],lmi_variables(:)',sparse(i,i+1,ones(n,1),n,n+1),0);
14    else
15        x = sdpvar(n,1,[],lmi_variables(:)',sparse(i,i+1,ones(n,1),n,n+1),0);
16        for i = 1:length(lmi_variables)
17            varargout{i} = x(i);
18        end
19    end
20end
Note: See TracBrowser for help on using the repository browser.