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: drawLabels.m
    path of file: ./repos/matGeom/matGeom/geom2d
    
    the code of the file until where you have to start completion: function varargout = drawLabels(varargin)
%DRAWLABELS Draw labels at specified positions.
%   
%   drawLabels(X, Y, LBL)
%   Draws labels LBL at positions given by X and Y.
%   LBL can be either a string array, or a number array. In this case,
%   string are created by using sprintf function, using the '%.2f' format.
%
%   drawLabels(POS, LBL)
%   Draws labels LBL at position specified by POS, where POS is a N-by-2
%   numeric array. 
%
%   drawLabels(..., NUMBERS, FORMAT)
%   Creates labels using sprintf function, with the mask given by FORMAT 
%   (e.g. '%03d' or '5.3f'), and the corresponding values.
%
%   drawLabels(..., PNAME, PVALUE)
%   Specifies additional parameters to the created labels. See 'text'
%   properties for available values.
%


    
function varargout = drawLabels(varargin)
%DRAWLABELS Draw labels at specified positions.
%   
%   drawLabels(X, Y, LBL)
%   Draws labels LBL at positions given by X and Y.
%   LBL can be either a string array, or a number array. In this case,
%   string are created by using sprintf function, using the '%.2f' format.
%
%   drawLabels(POS, LBL)
%   Draws labels LBL at position specified by POS, where POS is a N-by-2
%   numeric array. 
%
%   drawLabels(..., NUMBERS, FORMAT)
%   Creates labels using sprintf function, with the mask given by FORMAT 
%   (e.g. '%03d' or '5.3f'), and the corresponding values.
%
%   drawLabels(..., PNAME, PVALUE)
%   Specifies additional parameters to the created labels. See 'text'
%   properties for available values.
%

% ------
% Author: David Legland 
% E-mail: david.legland@inrae.fr
% Created: 2003-12-15
% Copyright 2003-2023 INRA - TPV URPOI - BIA IMASTE

% check if enough inputs are given
if isempty(varargin)
    error('wrong number of arguments in drawLabels');
end