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 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 2 Version 4 and earlier.

For functional characteristics and limitations, see SBML Support.

Input Arguments


String specifying either of the following:

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

  • URL (if you have Java programming language)


Import SBML model:

sbmlobj = sbmlimport('oscillator.xml');


Use the SimBiology® desktop to import an SBML-formatted file. For more information, see Importing and Exporting Models, Tasks, and Data from the Desktop and Importing from SBML Files.


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

Was this topic helpful?