Main Content

sbiogetmodel

Get model object that generated simulation data

Syntax

modelObj = sbiogetmodel(simDataObj)

Arguments

simDataObjSimData object returned by the function sbiosimulate or by sbioensemblerun.
modelObjModel object associated with the SimData object.

Description

modelObj = sbiogetmodel(simDataObj) returns the SimBiology® model (modelObj) associated with the results from a simulation run (simDataObj). You can use this function to find the model object associated with the specified SimData object when you load a project with several model objects and SimData objects.

If the SimBiology model used to generate the SimData object (simDataObj) is not currently loaded, modelObj is empty.

Examples

collapse all

Load the oscillator model.

m1 = sbmlimport("oscillator.xml");

Simulate the model.

sd = sbiosimulate(m1);

Get the model that generated the simulation results.

m2 = sbiogetmodel(sd)
m2 = 
   SimBiology Model - Oscillator 

   Model Components:
     Compartments:      1
     Events:            0
     Parameters:        42
     Reactions:         42
     Rules:             0
     Species:           23
     Observables:       0

Version History

Introduced before R2006a

See Also