一、for循环
用法:
for index = start:statement:stop
end
for i = 1:3:10
print(i)
end
%output:1,4,7
二、while 循环
用法:
index = min
while index < max
end
index = min
while index < max
end
for i = 1:3:10
print(i)
end
%output:1,4,7
index = min
while index < max
end