函数y = circularSelect(v, a, b)
N =长度(v);
idx = a: b + N * (b <);
idx (idx > N) = idx (idx > N) - N;
y = v (idx);
结束