Matlab:
1、
for a = 10:20 % for 的取值还可以这样写: for a = [ 1:10 4 6 7 8 ]
fprintf('value of a: %d
', a);
end
R:
1、
for (value in that) {
this
}
2、
while(condition){
code
}
判断:
matlab:
R: