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: LCModelWrapper.m
    path of file: ./repos/osprey/fit/code/LCMwrapper
    
    the code of the file until where you have to start completion: function [MRSCont] = LCModelWrapper(MRSCont,kk,progressText)
%% [MRSCont] = LCModelWrapper(MRSCont)
%   This function performs spectral fitting in LCModel.
%
%   USAGE:
%       [MRSCont] = osp_fitUnEdited(MRSCont, basisSet);
%
%   INPUTS:
%       MRSCont     = Osprey MRS data container.
%       basisSet    = Osprey basis set container.
%
%   OUTPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   AUTHOR:
%       Dr. Georg Oeltzschner (Johns Hopkins University, 2019-04-12)
%       goeltzs1@jhmi.edu
%
%   CREDITS:
%       This code is based on numerous functions from the FID-A toolbox by
%       Dr. Jamie Near (McGill University)
%       https://github.com/CIC-methods/FID-A
%       Simpson et al., Magn Reson Med 77:23-33 (2017)
%

    
function [MRSCont] = LCModelWrapper(MRSCont,kk,progressText)
%% [MRSCont] = LCModelWrapper(MRSCont)
%   This function performs spectral fitting in LCModel.
%
%   USAGE:
%       [MRSCont] = osp_fitUnEdited(MRSCont, basisSet);
%
%   INPUTS:
%       MRSCont     = Osprey MRS data container.
%       basisSet    = Osprey basis set container.
%
%   OUTPUTS:
%       MRSCont     = Osprey MRS data container.
%
%   AUTHOR:
%       Dr. Georg Oeltzschner (Johns Hopkins University, 2019-04-12)
%       goeltzs1@jhmi.edu
%
%   CREDITS:
%       This code is based on numerous functions from the FID-A toolbox by
%       Dr. Jamie Near (McGill University)
%       https://github.com/CIC-methods/FID-A
%       Simpson et al., Magn Reson Med 77:23-33 (2017)
%
%   HISTORY:
%       2023-07-12: First version of the code.

    [~] = printLog('OspreyFit',kk,1,MRSCont.nDatasets,progressText,MRSCont.flags.isGUI ,MRSCont.flags.isMRSI);

    % Put the scale to be 1 for now. Might have to adjust.
    MRSCont.fit.scale{kk} = 1;

    % Create the sub-folder where the LCModel results will be saved,
    % otherwise LCModel will throw 'FATAL ERROR MAIN 2'.
    if ~exist(fullfile(MRSCont.outputFolder, 'LCMoutput'), 'dir')
        mkdir(fullfile(MRSCont.outputFolder, 'LCMoutput'));
    end