Loading BioNetGen trajectories into MATLAB

From BioNetWiki

Jump to: navigation, search

MATLAB is a useful platform for post-simulation analysis of BNG models. The easiest way to load BNG simulation data into MATLAB is the 'tblread' function, like this:

[data,names] = tblread( 'model.gdat');

data is a 2-D array containing the trajectory data. The first column is the time step vector and the remaining columns correspond to observable trajectories. names is a string array containing the names of the observables.

Personal tools