Declare a boolean vector that has TRUE at all the positions you want to retain and FALSE at those you want to delete. Suppose that vector is y.
Then, x[y] will give you the requires output.
For the above question y is the vector that contain FALSE from 3 to 10 and TRUE elsewhere.
Reply with the code if it doesn't work. Like this if it does.