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

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

Added original make3d

File size: 390 bytes
Line 
1function clearsdpvar(X,value)
2% CLEARSDPVAR Clear solution
3
4% Author Johan Löfberg
5% $Id: clearsdpvar.m,v 1.2 2004/07/01 11:17:09 johanl Exp $ 
6
7x_lmi_variables = X.lmi_variables;
8
9sol = sdpvar('getSolution');
10keep_these = find(~ismember(sol.variables,x_lmi_variables));
11sol.optvar = [sol.optvar(keep_these)];
12sol.variables = [sol.variables(keep_these)];
13sdpvar('setAllSolution',sol);
14
15
16
Note: See TracBrowser for help on using the repository browser.