주요 콘텐츠

sbiomodel

R2026b

Construct model object

Description

modelObj = sbiomodel(modelName) returns a SimBiology® model object and sets its Name property to modelName.

example

modelObj = sbiomodel(modelName,Name=Value) also sets the properties of the model object using one or more name-value arguments. Name is the property name and Value is the corresponding value.

Examples

collapse all

Create a SimBiology model object, named m1.

modelObj = sbiomodel("m1");

Add a reaction to the model.

r1 = addreaction(modelObj,"A -> B");

List all modelObj properties and the current values.

get(modelObj)
ans = struct with fields:
          Compartments: [1×1 SimBiology.Compartment]
               Species: [2×1 SimBiology.Species]
            Parameters: [0×1 SimBiology.Parameter]
                 Rules: [0×1 SimBiology.Rule]
                Events: [0×1 SimBiology.Event]
           Observables: [0×1 SimBiology.Observable]
             Reactions: [1×1 SimBiology.Reaction]
                Models: [0×1 SimBiology.Model]
       EquivalenceSets: [0×1 SimBiology.EquivalenceSet]
                  Name: 'm1'
                Parent: [1×1 SimBiology.Root]
                 Notes: ''
                  Tags: [0×1 string]
                   Tag: ''
                  Type: 'sbiomodel'
              UserData: []
    FullyQualifiedName: 'm1'

Display a summary of modelObj contents.

modelObj
modelObj = 
   SimBiology Model - m1 

   Model Components:
     Compartments:      1
     Events:            0
     Parameters:        0
     Reactions:         1
     Rules:             0
     Species:           2
     Observables:       0
     Models:            0

Input Arguments

collapse all

Name of the SimBiology model, specified as a character vector or string scalar.

Data Types: char | string

Output Arguments

collapse all

SimBiolgy model, returned as a Model object.

All SimBiology model objects can be retrieved from the SimBiology root object (see sbioroot). A SimBiology model object has its Parent property set to the SimBiology root object.

Version History

Introduced in R2006a