function sldvData = storeReleaseInformation(sldvData)
% Store MATLAB release information in SLDV Data

% Copyright 2020 The MathWorks, Inc.

    release = matlabRelease.Release;
    stage = matlabRelease.Stage;
    update = matlabRelease.Update;

    if strcmp("prerelease", stage)
        stageInfo = 'Prerelease';
    elseif strcmp("release", stage) && update > 0
        stageInfo = ['Update ' num2str(update)];
    else
        stageInfo = '';
    end

    if ~isempty(stageInfo)
        releaseInfo = [char(release), ' ', stageInfo];
    else
        releaseInfo = release;
    end
    sldvData.AnalysisInformation.Release = releaseInfo;
end
