Skip to Main Content Skip to Search
Product Documentation

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

Retrieve the model object that generated the SimData object.

  1. Create a model object, simulate, and then return the results as a SimData object.

    modelObj = sbmlimport('oscillator');
    simDataObj = sbiosimulate(modelObj);
  2. Get the model that generated the simulation results.

    modelObj2 = sbiogetmodel(simDataObj)
    SimBiology Model - Oscillator
    
    Model Components:
      Models:            0
      Parameters:        0
      Reactions:         42
      Rules:             0
      Species:           23
  3. Check that the two models are the same.

    modelObj == modelObj2
    ans =
           1

See Also

sbiosimulate

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS