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: ProgressBar.m
    path of file: ./repos/MatlabProgressBar
    
    the code of the file until where you have to start completion: classdef ProgressBar < matlab.System
    %PROGRESSBAR A class to provide a convenient and useful progress bar
    % -------------------------------------------------------------------------
    % This class mimics the design and some features of the TQDM
    % (https://github.com/tqdm/tqdm) progress bar in python. All optional
    % functionalities are set via name-value pairs in the constructor after the
    % argument of the total numbers of iterations used in the progress (which
    
function [] = setupBar(obj)
            % Set up the growing bar part of the printed line by computing the
            % width of it
            
            [~, preBarFormat, postBarFormat] = obj.returnFormatString();
            
            % insert worst case inputs to get (almost) maximum length of bar
            preBar = sprintf(...
                preBarFormat, ...
                blanks(min(length(obj.CurrentTitleState), obj.MAX_TITLE_LENGTH)), ...
                100 ...
                );
            postBar = sprintf(...
                postBarFormat, ...
                obj.Total, ...
                obj.Total, ...
                10, 60, 60, 10, 60, 60, 1e2 ...
                );
            
            lenBar = obj.MaxBarWidth - length(preBar) - length(postBar);
            
            obj.Bar = blanks(lenBar);
        end