Skip to Main Content Skip to Search
Product Documentation

addcontent (variant) - Append content to variant object

Syntax

addcontent(variantObj, contents)

addcontent(variantObj1, variantObj2)

Arguments

variantObjSpecify the variant object to which you want to append data. The Content property is modified to add the new data.
contents

Specify the data you want to add to a variant object. Contents can either be a cell array or an array of cell arrays. A valid cell array should have the form {'Type', 'Name', 'PropertyName', PropertyValue}, where PropertyValue is the new value to be applied for the PropertyName. Valid Type, Name, and PropertyName values are as follows.

'Type''Name''PropertyName'
'species'Name of the species. If there are multiple species in the model with the same name, specify the species as [compartmentName.speciesName], where compartmentName is the name of the compartment containing the species.'InitialAmount'
'parameter'If the parameter scope is a model, specify the parameter name. If the parameter scope is a kinetic law, specify [reactionName.parameterName].'Value'
'compartment'Name of the compartment.'Capacity'

Description

addcontent(variantObj, contents) adds the data stored in the variable contents to the variant object (variantObj).


addcontent(variantObj1, variantObj2)
appends the data in the Content property of the variant object variantObj2 to the Content property of variant object variantObj1.

Examples

  1. Create a model containing one species.

    modelObj = sbiomodel('mymodel');
    compObj = addcompartment(modelObj, 'comp1');
    speciesObj = addspecies(compObj, 'A');
  2. Add a variant object that varies the InitialAmount property of a species named A.

    variantObj = addvariant(modelObj, 'v1');
    addcontent(variantObj, {'species', 'A', 'InitialAmount', 5});

See Also

addvariant, rmcontent, sbiovariant

  


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