Did you try to just type it out, like
dv = 3;
x = [1, 2] % Whatever....
lamdaVector = [0.6, 0.4];
lambda = 0;
for k = 1 : dv-1
lambda = lambda + lamdaVector(k) * x(k) ^ k
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!