I need to solve this problem without a for loop:
A = ;
A(1) = 1/(1+B(1));
for k = 2:length(B)
A(k,1) = (1-B(k)*sum(A))/(1+B(k));
i.e. I need to know if it is possible to get information from previous calculation to create a vector, but without a for loop. Thanks.