2
u/afuckingHELICOPTER Oct 25 '11
I'm not familiar with the language, so maybe it automatically does it, but wouldn't this just go on forever because it never increments i?
2
u/SteveRyherd Oct 25 '11
I believe that's intrinsic to the "for loop" in matlab, you can set a minimum and maximum and the step is defaulted to 1.
for i = min : maxTo set the increments to something else, I think you do:
for i = min : step : max
2
u/gufcfan Oct 25 '11
I hate this subreddit. Makes me feel stupid all the time.
I have no fucking idea what that was about.