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: parseAxisHandle.m
    path of file: ./repos/matStats/matStats/@Table/private
    
    the code of the file until where you have to start completion: function [ax, varargin] = parseAxisHandle(varargin)
%PARSEAXISHANDLE Parse handle to axis, or return current axis
%
%   [ax varargin] = parseAxisHandle(varargin{:})
%   If first input argument is an axis handle, return it in AX. Otherwise,
%   return an handle to the current axis.
%   The rest of the arguments are returned in VARARGIN.
%
%   Example

    
function [ax, varargin] = parseAxisHandle(varargin)
%PARSEAXISHANDLE Parse handle to axis, or return current axis
%
%   [ax varargin] = parseAxisHandle(varargin{:})
%   If first input argument is an axis handle, return it in AX. Otherwise,
%   return an handle to the current axis.
%   The rest of the arguments are returned in VARARGIN.
%
%   Example
%     function myFunction(varargin)
%       [ax varargin] = parseAxisHandle(varargin{:});
%       % ... parse other arguments
%       plot(ax, ...); % plot on specified axis
%
%   See also
%     parseAxisAndTable
%

% ------
% Author: David Legland
% e-mail: david.legland@inra.fr
% Created: 2011-12-15,    using Matlab 7.9.0.529 (R2009b)
% Copyright 2011 INRA - Cepia Software Platform.

% varargin can not be empty
if isempty(varargin)
    error('can not be called without argument');
end