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: patientinfo.m
    path of file: ./repos/fieldtrip/external/sqdproject/@sqdhandle/private
    
    the code of the file until where you have to start completion: function t = patientinfo(fid,seekset,t)
% T = PATIENTINFO(FID,SEEKSET,T);
%   FID = valid filepointer to a sqdfile
%   SEEKSET = starting point of file read
%   T = SQDHANDLE OBJECT/STRUCTURE
% Gets the info regarding patient (name, birthday,...) from the file pointed
% to by fid and returns a SQDHANDLE OBJECT if second argument is 

    
function t = patientinfo(fid,seekset,t)
% T = PATIENTINFO(FID,SEEKSET,T);
%   FID = valid filepointer to a sqdfile
%   SEEKSET = starting point of file read
%   T = SQDHANDLE OBJECT/STRUCTURE
% Gets the info regarding patient (name, birthday,...) from the file pointed
% to by fid and returns a SQDHANDLE OBJECT if second argument is 
% passed as sqdhandle or if no arguemnt is passed or a structure is 
% passsed, it returns a structure


if nargin<1
    error('First argument must be valid file-pointer to a sqd-file');
elseif nargin<2
    seekset = -1;
end