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: pointAnnotate.m
    path of file: ./repos/GIBBON/lib
    
    the code of the file until where you have to start completion: function [varargout]=pointAnnotate(V,nodeIndices,varargin)

% function [ht]=pointAnnotate(V,nodeIndices,varargin)
% ------------------------------------------------------------------------
% This function annotates the points definced by V using the indices
% nodeIndices. Optional additional inputs are those associated with
% MATLAB's text function. 
% 
% Change log: 
% 2019/08/06 Created
% ------------------------------------------------------------------------

    
function [varargout]=pointAnnotate(V,nodeIndices,varargin)

% function [ht]=pointAnnotate(V,nodeIndices,varargin)
% ------------------------------------------------------------------------
% This function annotates the points definced by V using the indices
% nodeIndices. Optional additional inputs are those associated with
% MATLAB's text function. 
% 
% Change log: 
% 2019/08/06 Created
% ------------------------------------------------------------------------

%% Parse input
if size(V,2)==2
    V(:,3)=0; %Force to be 3D
end