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: fitterOutputFcn.m
    path of file: ./repos/magic-formula-tyre-tool/src/+helpers
    
    the code of the file until where you have to start completion: function stop = fitterOutputFcn(x,optimValues,state,dlg,fitter)
%FITTEROUTPUTFCN Used for the "OutputFcn" of fmincon's optimizing settings.
%   Enables cancellation of the fitting process without losing the
%   progress. When the user presses the "Cancel" button on a progress
%   dialogue, the fitter exits ("stop" flag is set to "true").

    
function stop = fitterOutputFcn(x,optimValues,state,dlg,fitter)
%FITTEROUTPUTFCN Used for the "OutputFcn" of fmincon's optimizing settings.
%   Enables cancellation of the fitting process without losing the
%   progress. When the user presses the "Cancel" button on a progress
%   dialogue, the fitter exits ("stop" flag is set to "true").
%
%   Also updates progress dialog while iterating with most important
%   information.
%
arguments
    x
    optimValues
    state
    dlg matlab.ui.dialog.ProgressDialog
    fitter magicformula.v61.Fitter
end