As the values of your vector VX are in descending order you may simply use reverse(VX) and reverse(VY) instead of VX and VY.
↧
As the values of your vector VX are in descending order you may simply use reverse(VX) and reverse(VY) instead of VX and VY.