%

% Copyright 2017 The MathWorks, Inc.
function scope = getScope(model)
    if strlength(model) == 0
        scope = Simulink.data.BaseWorkspace;
        return;
    end

    dName = get_param(model, 'DataDictionary');
    if strlength(dName) == 0
        scope = Simulink.data.BaseWorkspace;
    else
        scope = Simulink.data.DataDictionary(dName);
    end
end
