If you want x to go to some particular point c, you would for instance add a penalty on x{k}-c for all states, or just on final state so x{N}-c, and what penalty you add is up to what kind of model you want, you might ant to use a LP-representable such as norm(x{k}-c,1) or maybe a quadratic penalty (x{k}-c)'*(x{k}-c)
or maybe just add the constraint that x{N} must be in some region
or from you pictures, it looked like you wanted the first element of the state to go to the right, so maybe just add the penalty on -x{N}(1), or use a slack s>=0 and add s (or s^2 or 10000*s^2 or what ever) with the constraint c<=x{N}(1)+s to ensure you only add a cost when x hasn't reached the region. etc etc etc