MATLAB: Problem with for loop

for looploops

hello i try to make a for loop but i need the jumps between the numbers will be in factor of 10 lets say there is a for loop like that: for i=1:5
so i need to make
for i=10,100,1000,10000
but it wont work maybe someone know what to do? thanks alot!

Best Answer

for ii = logspace(1,5,5)
% Do stuff here.
end