| Contents | Index |
[t, x, names]
= getdata(simDataObj)
[Out] = getdata(simDataObj,
'FormatValue')
| t | An n-by-1 vector of time points. |
| x | An n-by-m data array. t and names label the rows and columns of x respectively. |
| names | An m-by-1 cell array of names. |
| Metadata | When used with the 'nummetadata' input argument, Metadata contains a cell array of metadata structures. The elements of Metadata label the columns of x. |
| Out | Data returned in the format specified in 'FormatValue',
shown in Input Arguments. Depending
on the specified 'FormatValue', Out contains
one of the following:
|
| simDataObj | SimData object. Enter a variable name for a SimData object. |
| FormatValue | Choose a format from the following table. |
| FormatValue | Description |
|---|---|
| 'num' | Specifies the format that lets you return data in numeric arrays. This is the default when getdata is called with multiple output arguments. |
| 'nummetadata' | Specifies the format that lets you return a cell array of metadata structures in metadata instead of names. The elements of metadata label the columns of x. |
| 'numqualnames' | Specifies the format that lets you return qualified names in names to resolve ambiguities. |
| 'struct' | Specifies the format that lets you return a structure array holding both data and metadata. This is the default when you use a single output argument. |
| 'simdata' | Specifies the format that lets you return data in a new SimData object. This format is more useful for SimData methods other than getdata. |
| 'ts' | Specifies the format that lets you return data in time series objects, creating an individual time series for each state or column and SimData object in simDataObj. |
| 'tslumped' | Specifies the format that lets you return data in time series objects, combining data from each SimData object into a single time series. |
[t, x, names] = getdata(simDataObj) gets simulation time and state data from the SimData object simDataObj. When simDataObj contains more than one element, the outputs t, x, names are cell arrays in which each cell contains data for the corresponding element of simDataObj.
[Out] = getdata(simDataObj, 'FormatValue') returns the data in the specified format. Valid formats are listed in Input Arguments.
The project file, radiodecay.sbproj, contains a model stored in a variable called m1. Load m1 into the MATLAB workspace and simulate the model.
sbioloadproject('radiodecay');
simDataObj = sbiosimulate(m1);
Get all the simulation data from the SimData object.
[t x names] = getdata(simDataObj);
The project file, radiodecay.sbproj, contains a model stored in a variable called m1. Load m1 into the MATLAB workspace.
sbioloadproject('radiodecay');
Change the solver to use during the simulation and perform an ensemble run.
csObj = getconfigset(m1); set(csObj, 'SolverType', 'ssa'); simDataObj = sbioensemblerun(m1, 10);
Get all the simulation data from the SimData object.
tsObjs = getdata(simDataObj(1:5), 'ts');
display, get, resample, select, selectbyname, setactiveconfigset
MATLAB function struct

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |