1 function subseq = subblock_sequence(seq,varargin)
2 %
function subseq = subblock_sequence(seq,ind1[,ind2,...])
4 % For a given cell-array with matrix entries, an identically sized
5 % cell-array subseq is generated, in which only the
6 % matrix-components ind1 x ind2 are copied, e.g. 1:N, 1:M would be
7 % suitable ranges to be passed in ind1, ind2.
9 % Bernard Haasdonk 15.5.2007
11 subseq = cell(size(seq));
12 for ci = 1:numel(seq);
13 subseq{ci} = seq{ci}(varargin{:});