%

% Copyright 2017 The MathWorks, Inc.
function sources = getSources(obj, sourceType)
    args = {'Source'};
    if nargin >= 2
        args{end+1} = int32(sourceType);
    end
    ids = xls.internal.getSimulationProperty(obj.id, args{:});
    sources = xls.internal.Helper.createAndPreallocate(xls.internal.Source, ids);
end
