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: cfg_textfill.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/matlabbatch/private
    
    the code of the file until where you have to start completion: function str = cfg_textfill(obj, left, right, tflag)

% function str = cfg_textfill(obj, left, right)
% Fill a text object, so that the left part is left justified and the
% right part right justified. If tflag is set, try to fit text in widget
% by truncating right until at least 5 characters are displayed.
%
% This code is part of a batch job configuration system for MATLAB. See 
%      help matlabbatch
% for a general overview.
%_______________________________________________________________________
% Copyright (C) 2007 Freiburg Brain Imaging

% Volkmar Glauche
% $Id: cfg_textfill.m 2138 2008-09-22 13:27:44Z volkmar $

rev = '$Rev: 2138 $'; %#ok


    
function str = cfg_textfill(obj, left, right, tflag)

% function str = cfg_textfill(obj, left, right)
% Fill a text object, so that the left part is left justified and the
% right part right justified. If tflag is set, try to fit text in widget
% by truncating right until at least 5 characters are displayed.
%
% This code is part of a batch job configuration system for MATLAB. See 
%      help matlabbatch
% for a general overview.
%_______________________________________________________________________
% Copyright (C) 2007 Freiburg Brain Imaging

% Volkmar Glauche
% $Id: cfg_textfill.m 2138 2008-09-22 13:27:44Z volkmar $

rev = '$Rev: 2138 $'; %#ok

if ~ishandle(obj)
    cfg_message('matlabbatch:usage',...
          'First input must be a graphics handle.');
else
    try
        get(obj,'string');
    catch
        cfg_message('matlabbatch:usage',...
              'Input object must have a ''string'' property.');
    end