source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/spy.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 281 bytes |
Line | |
---|---|
1 | function varargout = spy(X) |
2 | %SPY (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: spy.m,v 1.5 2006/07/26 20:17:58 joloef Exp $ |
6 | |
7 | if isa(X,'blkvar') |
8 | X = sdpvar(X); |
9 | end |
10 | |
11 | Z = reshape(sum(abs(X.basis),2),X.dim(1),X.dim(2)); |
12 | if nargout==0 |
13 | spy(Z) |
14 | else |
15 | varargout{1}=Z; |
16 | end |
Note: See TracBrowser
for help on using the repository browser.