I believe the syntax for a for-loop in mathlab is ? for i=1:12 - or something like that. write "help for" or "man for" (dunno which to get manual) directly in matlab main window.
edit: I was indeed correct
edit: I was indeed correct
Code:
for loop variable = startvalue : endvalue
commands
end