x,y are two variables which are two vectors by N*1. [x y] is the coordinates of an moving object. Dmax is the longest distance that the object can travel within each time slot. So how can I write the following constrain?

if not in CVX, I think the followling expression maybe right.

for i=1:N-1

(x(i+1)-x(i))^2+(y(i+1)-y(i))^2<=Dmax^2

end

But how can i write this in CVX?