1 function res = lincomb_sequence2(seq,sigma1,sigma2)
2 %
function res = lincomb_sequence2(seq,sigma1,sigma2)
4 %
function performing a linear combination of the elements in the
5 % 2d cell array seq with coefficients in sigma1 and sigma2 result is a
6 % vector/matrix the same size as the entries of seq.
7 % size of seq is length(sigma1) x length(sigma2)
8 % if some sigma = 0, the component is not touched, i.e. the component
9 % may also be an empty matrix.
11 % Bernard Haasdonk 15.5.2007
15 res = zeros(size(seq{1,1}));
20 res = res + sigma1(q1)*sigma2(q2)*seq{q1,q2};