MATLAB: Taking a descend interval

descendforloophelpinterval

for t=1:n
[L(t)]=(1/(50)^(t))
[C(t)]=(1/(800))^(t);
end
For the 1st line (L(t)) i need to use the interval 1:n however for the 2nd line i need from n:1. How do i change t without changing the interval in the for loop?

Best Answer

Insert
tau = n+1-t;
then raise 1/800 to the power tau.