Get from Ico-github-logo

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

» Watch video

Highlights from

  • epanet
    obj.QualityType = obj.getQualityType;
  • testFunctions.m
    EPANET-Matlab Class Test Part 1
  • testBinFunctions.m
    EPANET-Matlab Class Test Part 3
  • testBinWithoutDLL.m
    EPANET-Matlab Class Test Part 3
  • RunTests.m
    Run Tests Files
  • testGetSetLinks.m
  • testGetSetNodes.m
    EPANET-Matlab Class Test Net1 **01/07/2016**
  • testMSXFunctions.m
    EPANET-Matlab Class Test Part 2
  • View all files

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 3.84 MB File ID: #25100 Version: 2.1.0
image thumbnail




21 Aug 2009 (Updated )

A Matlab class for EPANET water distribution simulation libraries

| Watch this File

File Information

The EPANET-Matlab Toolkit is an open-source software which operates within the Matlab environment, for providing a programming interface for the latest version of EPANET, a hydraulic and quality modeling software created by the US EPA, with Matlab, a high-level technical computing software. The goal of the Matlab Class is to serve as a common programming framework for research and development in the growing field of smart water networks.
The EPANET-Matlab Toolkit features easy to use commands/wrappers for viewing, modifying, simulating and plotting results produced by the EPANET libraries


This file inspired Epanet Info From Inp Files and Kios Research/Epa Gui.

MATLAB release MATLAB 8.5 (R2015a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
05 Oct 2014 Demetrios Eliades

@Karwan Ali: you need to run

>>mex -setup

and select a compiler (e.g. Microsoft Windows SDK 7.1)

Have a look at this link:

Comment only
04 Oct 2014 Karwan Ali

Please,I have the following error, what does it means?. Thank you

Error using loadlibrary (line 254)
A 'Selected' compiler was not found. You may need to run mex -setup.

Error in epanetloadfile (line 3)

Comment only
27 Jun 2013 Chris Kelley

Thank you for this tool. I've noticed that the full hydraulic analysis report output by the toolkit (set with ENsetstatusreport(2)) seems to be very different from the full report output by EPANET (in Report >> Full...). Is there an easy way to get all the data in the EPANET full report via this toolkit?

Your advice is greatly appreciated.


Comment only
23 Nov 2012 Mesanlibor

i want to use optimization also here, i want to keep the elevation of the nodes and the diameter of the pipes as variables in the input file. How can i do it?

Comment only
15 May 2012 jinseok

can you tell me how to install this file?

Comment only
07 Mar 2011 david

david (view profile)

fantastic tool!

17 Jan 2010 Kegong Diao

Thanks a lot!

22 Oct 2010 1.1

Philip Jonkergouw is now properly acknowledged!

25 Oct 2010 1.4

Removed epanet.dll file

25 Nov 2010 1.5

1. Added instructions on how to run the example by downloading EPANET.DLL
2. Changed the copyright file

29 Jun 2011 1.6

Notify for a bug in setdata.m, regarding control modification

15 Oct 2013 1.8

Change in the description

20 Jul 2016 2.1

Version 2.1 includes enhanced capabilities for visualizing the network, for executing EPANET/EPANET-MSX functions. The user can execute step-by-step hydraulic and quality analysis, or in batch using the binaries.

24 Aug 2016 2.1

updated figure

24 Aug 2016 2.1.0

Link to the OWA repository.

Contact us