This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

get (any object)

Get object properties


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


PropertyValueValue defined for 'PropertyName'

Abstract kinetic law, compartment, configuration set, event, kinetic law, model, parameter, PKCompartment, PKData, PKModelDesign PKModelMap, reaction, rule, SimData, species, or variant object.

'PropertyName'Name of the property to get.
objProperties Struct containing properties and values for the object, Obj.


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.


  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 =

Introduced in R2008b

Was this topic helpful?