source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@lmi/spy.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 371 bytes |
Line | |
---|---|
1 | function S = spy(X) |
2 | %SPY (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: spy.m,v 1.3 2005/11/25 14:15:14 joloef Exp $ |
6 | |
7 | if length(X)>1 |
8 | S = []; |
9 | for i = 1:length(X) |
10 | S = blkdiag(S,spy(X.clauses{1}.data)); |
11 | end |
12 | if nargout == 0 |
13 | spy(S); |
14 | end |
15 | else |
16 | X = spy(sdpvar(X)); |
17 | if nargout==0 |
18 | spy(X); |
19 | else |
20 | S = X; |
21 | end |
22 | end |
Note: See TracBrowser
for help on using the repository browser.