Main Content


Import SBML-formatted file


modelObj = sbmlimport(File)


modelObj = sbmlimport(File) imports File, a Systems Biology Markup Language (SBML)-formatted file, into MATLAB and creates a model object modelObj.

File is a character vector or string specifying a file name or a path and file name supported by your operating system. File extensions are .sbml or .xml.File can also be a URL, if you have the Java® programming language.

sbmlimport supports SBML Level 3 Version 1 and earlier.

For functional characteristics and limitations, see SBML Support.

Input Arguments


Character vector or string specifying either of the following:

  • File name or path and file name supported by your operating system

  • URL


Import SBML model:

sbmlobj = sbmlimport('oscillator.xml');


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

Version History

Introduced before R2006a

expand all