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: ft_dependencycheck.m
    path of file: ./repos/bspm/thirdparty/spm12/external/fieldtrip
    
    the code of the file until where you have to start completion: function [funlist, deplist, depmat] = ft_dependencycheck

% FT_DEPENDENCYCHECK checks the dependencies on the backward compatibility functions
% and on the external toolboxes.

% Copyright (C) 2013, Robert Oostenveld
%
% This file
    
function "%s" onto a compat function\n', funlist{any(depmat(:,compatfun),2)});
  fprintf('\nThere is a dependency onto the compat function "%s"\n', deplist{compatfun});
  error('dependencies on compat functions are not allowed');
end

toolboxfun = find(~cellfun(@isempty, regexp(deplist, matlabroot)));
toolbox = cell(size(toolboxfun));
t0 = length(tokenize(matlabroot, filesep));
for i=1:length(toolboxfun)
  t = tokenize(deplist{toolboxfun(i)}, filesep);
  toolbox{i} = t{t0+2};
end