I just wanted to cut part of my data out in MATLAB, for example: If I click on two points on the axis, it will cut the elements after the I click on with respect to the x-axis.