function varargout = getVariableFromModel(model, paramName)
%

%   Copyright 2023 The MathWorks, Inc.

    paramName = convertStringsToChars(paramName);
    mdlWks = get_param(model, 'ModelWorkspace');
    [varargout{1:nargout}] = getVariable(mdlWks, paramName);
end

