Main Content

sbmlimport

Import SBML-formatted file

Description

example

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

Examples

collapse all

Load the lotka model.

m1 = sbmlimport("lotka.xml");

Get the adjacency matrix of the model.

[M,Headings] = getadjacencymatrix(m1)
M = 
   (5,1)        1
   (5,2)        1
   (6,3)        1
   (7,4)        1
   (1,5)        1
   (2,5)        1
   (2,6)        1
   (3,6)        1
   (3,7)        1

Headings = 7x1 cell
    {'x'        }
    {'y1'       }
    {'y2'       }
    {'z'        }
    {'Reaction1'}
    {'Reaction2'}
    {'Reaction3'}

Input Arguments

collapse all

Name of an SBML file, specified as a character vector or string scalar.

Specify a file name or a path and file name. The acceptable file extensions are .sbml or .xml. You can also specify a URL.

The function supports SBML Level 3 Version 1 and earlier. For functional characteristics and limitations, see SBML Support.

Data Types: char | string

References

[1] 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