%% Get Number of Simulation Scenarios
% Create a SimBiology.Scenarios object for a parameter (k1) with sample values of 1.3 and 1.4.

sObj = SimBiology.Scenarios('k1',[1.3;1.4]);

%
% Add a species (s1) with initial sample amounts of 2.7, 3.1, and 3.4. Use the cartesian combination method to combine entries.

add(sObj,'cartesian','s1',[2.7; 3.1; 3.4]);

%
% Get the number of simulation sceanarios that the object has after combining the entries.

n = getNumberScenarios(sObj)

% Copyright 2019 The MathWorks, Inc.