To construct a range that takes a non-1 step size, you can do 1:step:end. Hope that helps.
1:step:end
Also, please make it easier to help you