rbmatlab 0.10.01
|
00001 function subseq = subblock_sequence(seq,varargin) 00002 %function subseq = subblock_sequence(seq,ind1[,ind2,...]) 00003 % 00004 % For a given cell-array with matrix entries, an identically sized 00005 % cell-array subseq is generated, in which only the 00006 % matrix-components ind1 x ind2 are copied, e.g. 1:N, 1:M would be 00007 % suitable ranges to be passed in ind1, ind2. 00008 00009 % Bernard Haasdonk 15.5.2007 00010 00011 subseq = cell(size(seq)); 00012 for ci = 1:numel(seq); 00013 subseq{ci} = seq{ci}(varargin{:}); 00014 end; 00015 00016 %| \docupdate