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: admTaylorArray.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/adjointclasses/taylor
    
    the code of the file until where you have to start completion: % function T = admTaylorArray(varargin)
%   concatenate a number of derivative objects to a Jacobian matrix
%
% This file is part of the ADiMat runtime environment, and belongs
% to the tseries derivative class.
%
% Copyright 2010-2012 Johannes Willkomm, Institute for Scientific Computing
% Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computin
    
function T = admTaylorArray(varargin)
%   concatenate a number of derivative objects to a Jacobian matrix
%
% This file is part of the ADiMat runtime environment, and belongs
% to the tseries derivative class.
%
% Copyright 2010-2012 Johannes Willkomm, Institute for Scientific Computing
% Copyright 2001-2009 Andre Vehreschild, Institute for Scientific Computing
%                     RWTH Aachen University
function TA = admTaylorArray(varargin)
  nCompInResult = sum(cellfun('prodofsize', varargin));
  maxOrder = get(varargin{1}, 'maxorder');
  if maxOrder > 0
    ndd = admGetNDD(varargin{1}{2});
  else
    ndd = 1;
  end