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: ukfCfgGen.m
    path of file: ./repos/ukfLib/tools/ukfCfgGen
    
    the code of the file until where you have to start completion: %Initial version of UKF cfg generator
%Status : In progress 
function ukfCfgGen(handles)
%Initialization section (test with pendulum)
cfgID = handles.ukfdata.cf
    
function str = mtx2arr(mtx)
% convert numeric matrix in string ready for initialization of C arrays
% Example:
% in = [1 2 3; 4 5 6]
% out = {{1,2,3,},{4,5,6}}

[r,c]=size(mtx);
str = arrayfun(@num2str, mtx, repmat(20,r,c), 'UniformOutput', false);
if c > 1    
    str = cellfun(@strcat,str, repmat({','},r,c),'UniformOutput',false);
    str(:,1) = cellfun(@strcat,repmat({'{'},r,1),str(:,1),'UniformOutput',false);
    str(:,end