Resample Sobol indices or elementary effects to new time vector
Resample Sobol Indices to New Time Points
Load the lotka model.
m = sbmlimport("lotka");
Decompose the variance of predators y2 into attributions of the initial values of the prey y1 and predators.
sobolResults = sbiosobol(m,["y1","y2"],"y2","StopTime",1); plot(sobolResults);
Resample the Sobol indices to a new time vector.
newSobolResults = resample(sobolResults,linspace(0,1,50)); plot(newSobolResults);
timeVector — New time points
New time points, specified as a nonempty real numeric vector containing finite and increasing values.
timeVector includes time points outside the time interval
encompassed by the simulation data in
resample performs extrapolation. The function issues a warning
and throws an error if resampling fails due to extrapolation.
See the help for the MATLAB function corresponding to the interpolation method in use for information on how the function performs the extrapolation.
method — Interpolation method
'interp1q' (default) | string | character vector
Interpolation method, specified as a string or character vector. The valid options follows.
results — Resampled results
SimBiology.gsa.Sobol object |
Resampled simulation results computed at new time points, returned as a
SimBiology.gsa.ElementaryEffects object. If the input is a
SimBiology.gsa.Sobol object, the returned results contain resampled
simulation results and Sobol indices computed at new time points. If the input is an
SimBiology.gsa.ElementaryEffects object, the results contain
resampled simulation results and elementary effects computed at new time points.
Introduced in R2020a