1 function res = lincomb_sequence(seq,sigma)
2 %
function res = lincomb_sequence(seq,sigma)
4 %
function performing a linear combination of the elements in the
5 % cell array seq with coefficients in sigma result is a
6 % vector/matrix the same size as the entries of seq.
7 %
if sigma = 0, the component is not touched, i.e. the component
8 % may also be an empty matrix.
10 % Bernard Haasdonk 15.5.2007
13 res = seq{1}* sigma(1);
16 res = res + sigma(q)*seq{q};