View Full Version : Matlab help!
FrostScYthe
Oct30-06, 04:24 PM
What does this statement mean in matlab?
for i = n:-1:j
abhishek
Nov2-06, 12:45 PM
It's the header of a for loop. i takes on the value of n initially; the loop body (which you haven't shown) is executed; i changes by -1; and the loop repeats until i and j are equal.
Refer to: http://www.mathworks.com/access/helpdesk_r13/help/toolbox/rptgen/forloop.html
:smile:
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.