Documentation

This is machine translation

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

get (any object)

Get object properties

Syntax

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

Arguments

PropertyValueValue defined for 'PropertyName'
Obj

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.
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
Was this topic helpful?