Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Ecopathlite.m: A Matlab implementation of Ecopath

  • setpos.m
  • setgetposexamples.m
  • getpos.m
  • legendflex.m
  • cprintf.m
  • calcclusteredparams(Full,...
    CALCCLUSTEREDPARAMS Calculates new Ewe input params for clustered model
  • calcstanza(A, varargin)
    CALCSTANZA Calculate B and Q/B values for multi-stanza Ecopath groups
  • cellstr2(s)
    CELLSTR2 Create cell array of strings from character array.
  • checkbalance(In)
    CHECKBALANCE Check whether Ecopath model is balanced
  • createensemble(Ewein, ped...
    CREATEENSEMBLE Generate ensemble of Ecopath models
  • displayecopath(varargin)
    DISPLAYECOPATH Prints ecopath results to screen
  • ecopath2graph(Ewein)
    ECOPATH2GRAPH Create graph objects for Ecopath model
  • ecopathinputcheck(A, warn...
    ECOPATHINPUTCHECK Checks and fixes input in an Ewe input structure
  • ecopathinputinfo
    ECOPATHINPUTINFO Table of dimesions and units for ecopath input fields
  • ecopathlite(S, varargin)
    ECOPATHLITE Rewrite of Ecopath algorithms
  • ecopathstats(A, varargin)
    ECOPATHSTATS Ecological network indices for Ecopath models
  • editstanzacalcs(a, k, bab...
    EDITSTANZACALCS Replicate multi-stanza calculations from Ecopath
  • ewecsv2ewein(file)
    EWECSV2EWEIN Converts a file with EwE model data to an EwE input structure
  • eweunitconvert(oldunit, n...
    EWEUNITCONVERT Convert Ewe input structure between units
  • mdb2ewein(file)
    MDB2EWEIN Convert EwE6 files to Ecopath input structures
  • parsepv(Param, pvpairs, v...
    PARSEPV Parses parameter/value pairs
  • readtext(text, delimiter,...
  • regexpfound(str, expression)
    REGEXPFOUND Determine whether a regular expression is in a string
  • rpath2ewein(basename, var...
    RPATH2EWEIN Reads in Ecopath data from Rpath-formatted .csv files
  • sortewein(Ewein)
    SORTEWEIN Sort groups in Ewe input structure by trophic level
  • subecopathens(Ewein, x, idx)
    SUBECOPATHENS Create Ecopath input structure from ensemble data
  • test_ProgressBar()
    test_ProgressBar ConsoleProgressBar Demo and Test
  • trophiclevel(dc, pp, nliv...
    TROPHICLEVEL Estimates trophic level of food web members
  • ConsoleProgressBar
  • View all files
Be the first to rate this file! 20 Downloads (last 30 days) File Size: 1.05 MB File ID: #40082 Version: 1.4
image thumbnail

Ecopathlite.m: A Matlab implementation of Ecopath


Kelly Kearney (view profile)


30 Jan 2013 (Updated )

Reproduces the main mass-balance algorithm from the popular ecosystem modeling tool, Ecopath

| Watch this File

File Information

Ecopath with Ecosim is a popular ecosystem modeling tool, used primarily in the fisheries modeling community. The original software and documentation for this tool can be found here:
Ecopath is used to calculate a snapshot of an ecosystem, including the biomass of all functional groups (living groups, fishing gears, and detrital pools) and the fluxes between these groups. This Matlab function is designed to complement the original software by providing a quick, easy-to-automate alternative to the GUI-based software available from the link above. In addition to reproducing the main Ecopath algorithm (ecopathlite.m), this package provides tools to read in existing EwE6 .ewemdb files, and to build ensembles of models based on parameter uncertainty pedigrees. See the readme file (visible at for further details.


Gridxy (V2.2 Feb 2008), Plots.M, Plotses.M, Readtext, Cprintf Display Formatted Colored Text In The Command Window, and Console Progress Bar inspired this file.

Required Products Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
03 Jun 2014 1.1

- 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

03 Jun 2014 1.2

Corrected FEX image

18 Aug 2015 1.3

- 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

30 Jun 2016 1.4

Updated description to reference github readme.

Contact us