This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Export SimBiology model to SBML file


sbmlexport(modelObj, 'FileName')


modelObjModel object. Enter a variable name for a model object.
FileNameXML file with a Systems Biology Markup Language (SBML) format. Enter either a file name or a path and file name supported by your operating system. If the file name does not have the extension .xml, then .xml is appended to end of the file name.


sbmlexport(modelObj) exports a SimBiology® model object (modelObj) to a file with a Systems Biology Markup Language (SBML) Level 2 Version 4 format. The default file extension is .xml and the file name matches the model name.

sbmlexport(modelObj, 'FileName') exports a SimBiology model object (modelObj) to an SBML file named FileName. The default file extension is .xml.

A SimBiology model can also be written to a SimBiology project with the sbiosaveproject function to save features not supported by SBML.

For more information about features that are supported by SimBiology but not by SBML or vice visa, see SBML Support.


Export a model (modelObj) to a file (gene_regulation.xml) in the current working directory.



Finney, A., Hucka, M., (2003), Systems Biology Markup Language (SBML) Level 2: Structures and facilities for model definitions. Accessed from

Introduced before R2006a