| SimBiology® | ![]() |
Note sbiogetnamedstate produces a warning and will be removed in a future version. Use selectbyname instead. |
[t,x]= sbiogetnamedstate(simDataObj)
[t,x]= sbiogetnamedstate(simDataObj,'Name')
[t,x, Name]= sbiogetnamedstate(...)
sbiogetnamedstate returns state and time data from simulation results. [t,x]= sbiogetnamedstate(simDataObj) returns the time and state data associated with the simulation results (simDataObj) and returns to t and x respectively. simDataObj is a SimData object returned by the sbiosimulate function.
t is a n-by-1 vector of time samples labelling the rows of x.
x is a n-by-m matrix where n is the number of times the reactions fired and m is the number of states logged during simulation. Each column of x defines the variation in the quantity of a species over time.
[t,x]= sbiogetnamedstate(simDataObj,'Name') returns the state data associated with the name Name from the Simdata object, (smDataObj) and returns it to x. Name can be a cell array names. If a name, Name, does not exist, you see a warning.
[t,x, Name]= sbiogetnamedstate(...) returns the names associated with each column of x to Name.
![]() | sbiogetmodel | sbiogetsensmatrix | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |