You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: removeVertices.m
    path of file: ./repos/Point_cloud_tools_for_Matlab/classes/@polyMesh
    
    the code of the file until where you have to start completion: function obj = removeVertices(obj, idxVertices2del)
% REMOVEVERTICES Remove vertices (and corresponding faces) from mesh.

% Start ------------------------------------------------------------------------

    
function obj = removeVertices(obj, idxVertices2del)
% REMOVEVERTICES Remove vertices (and corresponding faces) from mesh.

% Start ------------------------------------------------------------------------

procHierarchy = {'POLYMESH' 'REMOVE VERTICES'};
msg('S', procHierarchy);

% Remove vertices and faces ----------------------------------------------------
% Loop was avoided with function ismember

if islogical(idxVertices2del), idxVertices2del = find(idxVertices2del); end