File Exchange

image thumbnail

ecopath_matlab: A Matlab implementation of Ecopath

version (1.06 MB) by Kelly Kearney
Reproduces the main mass-balance algorithm from the popular ecosystem modeling tool, Ecopath


Updated 30 Mar 2018

GitHub view license on GitHub

This package provides a Matlab-based implementation of the Ecopath algorithm (part of the popular fisheries ecosystem modeling tool Ecopath with Ecosim (, as well as a few functions for further analysis and visualization of an Ecopath-style food web.

This software is intended for people already familiar with the Ecopath concept who wish to perform that particular calculation, as well as related analysis of food web properties, outside of the GUI environment provided by the original EwE software.

If you use this code in your research, please cite as follows:

K. A. Kearney, “ecopath_matlab: A Matlab-based implementation of the Ecopath food web algorithm,” Journal of Open Source Software, vol. 2, no. 9, 2017.

Cite As

Kelly Kearney (2020). ecopath_matlab: A Matlab implementation of Ecopath (, GitHub. Retrieved .

Comments and Ratings (0)


corrected typo

Added JOSS citation to the description

Corrected spacing in description.

Corrected typo in description

Major update:
- new class (ecopathmodel)
- migrated most major functions to methods of this class
- The old version (ecopathlite.m) can still be found at

Updated description to reference github readme.

- Calculations are now robust to all potential input models, including those with multi-stanza groups.
- Completed implementation of the generalized inverse.
- Corrected bug in mdb2ewein where tables with spaces in their name were misinterpreted

Corrected FEX image

- Major overhaul to the createensemble routines: more flexibility, new sampling options, and improved efficiency
- mdb2ewein now uses dataset arrays, can return all data in the mdb file
- support for multi-stanza groups

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags