Products & Services Solutions Academia Support User Community Company

Learn more about SimBiology   

get (any object) - Get object properties

Syntax

PropertyValue = get(Obj, 'PropertyName')
objProperties = get(Obj)

Arguments

PropertyValueValue defined for 'PropertyName'
ObjAbstract kinetic law, compartment, configuration set, event, kinetic law, model, parameter, PKCompartment, PKData, PKModelDesignPKModelMap, reaction, rule, SimData, species, or variant object.
'PropertyName'Name of the property to get.
objPropertiesStruct containing properties and values for the object, Obj.

Description

PropertyValue = get(Obj, 'PropertyName') gets the value 'PropertyValue' of the object, Obj's PropertyName property.

objProperties = get(Obj) gets the properties for the object, Obj, and returns it to objProperties.

Examples

  1. Create a model object.

    modelObj = sbiomodel ('my_model');
  2. Add parameter object.

    parameterObj = addparameter (modelObj, 'kf');
  3. Set the ConstantValue property of the parameter object to false and verify.

    MATLAB returns 1 for true and 0 for false.

    set (parameterObj, 'ConstantValue', false);
    get(parameterObj, 'ConstantValue')

    MATLAB returns

    ans =
    
         0

See Also

getadjacencymatrix, getconfigset, getdata, getparameters, getsensmatrix, getspecies, getstoichmatrix, set

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS