%% Export a SimBiology Model
% Export a SimBiology model object.

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

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

{exportedModel.ValueInfo.Name}

%
% 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}

%
% 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}

% Copyright 2012 The MathWorks, Inc.