source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/getbasematrix.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 404 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function Q=getbasematrix(X,ind) |
2 | %GETBASEMATRIX Internal function to extract basematrix for variable IND | |
3 | ||
4 | % Author Johan Löfberg | |
5 | % $Id: getbasematrix.m,v 1.1 2006/07/13 19:40:59 joloef Exp $ | |
6 | ||
7 | if ind==0 | |
8 | base = X.basis(:,1); | |
9 | Q = reshape(base,X.dim); | |
10 | return; | |
11 | end | |
12 | ||
13 | here = find(X.lmi_variables==ind); | |
14 | if isempty(here) | |
15 | error | |
16 | else | |
17 | base = X.basis(:,here+1); | |
18 | Q = reshape(base,X.dim); | |
19 | end | |
20 | ||
21 |
Note: See TracBrowser
for help on using the repository browser.