source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ncvar/hankel.m @ 37

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

Added original make3d

File size: 484 bytes
Line 
1function H = hankel(c,r)
2%HANKEL (overloaded)
3
4% Author Johan Löfberg
5% $Id: hankel.m,v 1.1 2006/08/10 18:00:20 joloef Exp $
6
7% direct 1-to-1 copy of MATLAB double code
8c = reshape(c,prod(size(c)),1);
9nc = length(c);
10if nargin < 2,
11    r = zeros(size(c));
12end
13r = reshape(r,prod(size(r)),1);
14nr = length(r);
15x = [c;extsubsref(r,2:nr)];
16cidx = (1:nc)';
17ridx = 0:(nr-1);
18H = cidx(:,ones(nr,1)) + ridx(ones(nc,1),:);
19H = extsubsref(x,H);
20if isa(H,'sdpvar')
21    H.conicinfo = [0 0];
22end
23
Note: See TracBrowser for help on using the repository browser.