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: clagglmin.m
    path of file: ./repos/scGEAToolbox/+run/external/mt_SC3/ClusterPack
    
    the code of the file until where you have to start completion: % function cl = clagglmin(x,k,sfct)
%
% DESCRIPTION
%   provides cluster labels 1 to k using single link agglomerative clustering
%   this is a slow O(n^3) implementation
%
% Copyright (c) 1998-2011 by Alexander Strehl


function cl = clagglmin(x, k, sfct
    
function cl = clagglmin(x,k,sfct)
%
% DESCRIPTION
%   provides cluster labels 1 to k using single link agglomerative clustering
%   this is a slow O(n^3) implementation
%
% Copyright (c) 1998-2011 by Alexander Strehl


function cl = clagglmin(x, k, sfct)

if ~exist('sfct')
    sfct = 'simeucl';
    disp('clagglmin: using default Euclidean measure');
end