Owner shows you the SimBiology® compartment
object that owns the compartment object. In the compartment object,
Owner property shows you whether the compartment
resides within another compartment. The
indicates whether other compartments reside within the compartment.
You can add a compartment object using the method
|Applies to||Object: compartment|
|Data type||Character vector|
|Data values||Name of compartment object. Default is |
Create a model object named
modelObj = sbiomodel('cell');
Add two compartments to the model object.
compartmentObj1 = addcompartment(modelObj, 'nucleus'); compartmentObj2 = addcompartment(modelObj, 'mitochondrion');
Add a compartment to one of the compartment objects.
compartmentObj3 = addcompartment(compartmentObj2, 'matrix');
Ownerproperty in the compartment objects.
The result shows you the owning compartment and its components:
SimBiology Compartment - mitochondrion Compartment Components: Capacity: 1 CapacityUnits: Compartments: 1 ConstantCapacity: true Owner: Species: 0
Change the owning compartment.
set(compartmentObj3, 'Owner', compartmentObj1)