export (model)

Export SimBiology models for deployment and standalone applications

Syntax

exportedModel = export(model)
exportedModel = export(model,editvals)
exportedModel = export(model,editvals,editdoses)

Arguments

modelModel object.
editvalsVector of species, parameter, and compartment objects that are editable in the exported model.
editdosesVector of dose objects that are editable in the exported model.

Description

exportedModel = export(model) returns a SimBiology.export.Model object, exportedModel, from a SimBiology Model object, model, including all active doses. In addition, if the model has any active variants, they are automatically applied to the exported model. By default, all species, parameters, compartments, and doses are editable in the exported model.

exportedModel = export(model,editvals) specifies a vector of species, parameter, and compartment objects that are editable in the exported model. All doses in the exported model are editable.

exportedModel = export(model,editvals,editdoses) additionally specifies a vector of dose objects that are editable in the exported model.

Method Summary

Methods for exported model objects

acceleratePrepare exported SimBiology model for acceleration
getdoseReturn exported SimBiology model dose object
getIndexGet indices into ValueInfo and InitialValues properties
isAcceleratedDetermine whether an exported SimBiology model is accelerated
simulateSimulate exported SimBiology model

Examples

expand all

Export a SimBiology Model

Export a SimBiology model object.

modelObj = sbmlimport('lotka');
exportedModel = export(modelObj)
exportedModel = 

  Model with properties:

           Name: 'lotka'
     ExportTime: '14-Mar-2013 09:41:31'
    ExportNotes: ''  

Display the editable values (compartments, species, and parameters) information for the exported model object.

{exportedModel.ValueInfo.Name}
ans = 

    'unnamed'    'x'    'y1'    'y2'    'z'    'c1'    'c2'    'c3'

There are 8 editable values in the exported model. Export the model again, allowing only the parameters (c1, c2, and c3) to be editable.

parameters = sbioselect(modelObj,'Type','parameter');
exportedModelParam = export(modelObj,parameters);
{exportedModelParam.ValueInfo.Name}
ans = 

    'c1'    'c2'    'c3'

Export the model a third time, allowing the parameters and species to be editable.

PS = sbioselect(modelObj,'Type',{'species','parameter'});
exportedModelPS = export(modelObj,PS);
{exportedModelPS.ValueInfo.Name}
ans = 

    'x'    'y1'    'y2'    'z'    'c1'    'c2'    'c3'
Was this topic helpful?