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

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

Added original make3d

File size: 348 bytes
Line 
1function X=rot90(X)
2%ROT90 (overloaded)
3
4% Author Johan Löfberg
5% $Id: rot90.m,v 1.4 2006/07/26 20:17:58 joloef Exp $   
6
7n = X.dim(1);
8m = X.dim(2);
9nm = n*m;
10for i = 1:length(X.lmi_variables)+1
11  X.basis(:,i) = reshape(rot90(reshape(X.basis(:,i),n,m)),nm,1);
12end
13X.dim(1) = m;
14X.dim(2) = n;
15% Reset info about conic terms
16X.conicinfo = [0 0];
17
18
Note: See TracBrowser for help on using the repository browser.