v1 = [-4 -2 1 2 3 5]
v1([1 2]) = []
v1(4) = 6  % Set the element in position 4 to 6
v1(end) = 5
v1(length(v1)) = 6
v1([1 3]) = 4 % Sets the elements in position 1 and 3 equal
                % to 4
v1([2, 4]) = [-1 -2] % Sets the elements in position 1 and 4
% respectively equal to -1 and -2
v1([2 4]) = [1 2]