Is there an easy way to make a for loop count down instead of up?
I know that I can do something like this:
for i = 1:100
% do stuff
end
But I need the numbers in the opposite order. When I do this:
for i = 100:1
% do stuff
end
It says that 'i' is an empty matrix.