function out = center(x)

%center defines the "center" of any number.
out = floor(x./2)+1;