Skip to Main Content Skip to Search
Product Documentation

Name - Specify name of object

Description

The Name property identifies a SimBiology object. Compartments, species, parameters, and model objects can be referenced by other objects using the Name property, therefore Name must be unique for these objects. However, species names need only be unique within each compartment. Parameter names must be unique within a model (if at the model level), or within each kinetic law (if at the kinetic law level). This means that you can have nonunique species names if the species are in different compartments, and nonunique parameter names if the parameters are in different kinetic laws or at different levels. Note that having nonunique parameter names can cause the model to have shadowed parameters and that may not be best modeling practice. For more information on levels of parameters, see Scope of Parameter Objects in the SimBiology User's Guide documentation.

Use the function sbioselect to find an object with the same Name property value.

In addition, note the following constraints and reserved characters for the Name property in objects:

For more information on valid MATLAB variable names, see genvarname and isvarname.

Characteristics

Applies toObjects: abstract kinetic law, configuration set, compartment, event, kinetic law, model, parameter, reaction, RepeatDose, rule, ScheduleDose, species, unit, or variant
Data typechar string
Data valuesAny char string except reserved words and characters
AccessRead/write

Examples

  1. Create a model object named my_model.

    modelObj = sbiomodel ('my_model');
  2. Add a reaction object to the model object. Note the use of brackets because the names are not valid MATLAB variable names.

    reactionObj = addreaction(modelObj, '[Aspartic acid] -> [beta-Aspartyl-PO4]')

    MATLAB returns:

    SimBiology Reaction Array
    
    Index:    Reaction:
      1       [Aspartic acid] -> [beta-Aspartyl-PO4]
  3. Set the reaction Name and verify.

    set (reactionObj, 'Name', 'Aspartate kinase reaction');
    get (reactionObj, 'Name')

    MATLAB returns:

    ans =
    
      Aspartate kinase reaction

See Also

addcompartment, addkineticlaw, addparameter, addreaction, addrule, addspecies, RepeatDose object, sbiomodel, sbiounit, sbiounitprefix, ScheduleDose object

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS