Simulation data, specified as a SimData object or array of
SimData objects.
Simulation data format, specified as a character vector or string. Some formats require you to
specify only one output argument. The valid formats follow.
'num' — This format returns simulation time points and
simulation data in numeric arrays and the names of quantities and sensitivities
as a cell array. This format is the default when you run
getdata with multiple output arguments.
'nummetadata' — This format returns a cell array of
metadata structures instead of the names of quantities and sensitivities as the
third output argument.
'numqualnames' — This format returns qualified names in the
third output argument to resolve ambiguities.
You must specify only one output argument for the following formats.
'simdata' — This format returns data in a new
SimData object or an array of SimData
objects. This format is the default when you specify a single output
argument.
'struct' — This format returns a structure or structure
array that contains both data and metadata.
'ts' — This format returns data as a cell array.
If simdata is scalar, the cell array is an m-by-1 array, where each element is a timeseries object. m is the number of quantities and sensitivities logged during the simulation.
If simdata is not scalar, the cell array is
k-by-1, where each element of the cell array
is an m-by-1 cell array of
timeseries objects. k is the
size of simdata, and m is
the number of quantities or sensitivities in each
SimData object in simdata.
In other words, the function returns an individual time series for
each state or column and for each SimData object in
simdata.
'tslumped' — This format returns the data as a cell array
of timeseries objects, combining
data from each SimData object into a single time series.