Trying to locate 'getenconstant'

Hello all!

I’m trying to run a Matlab code that uses a function called ‘getenconstant’, but I can’t seem to locate it. I keep receiving an error that a function or variable is undefined. I am using the 32-bit Matlab R2015b due to constraints with other programs I am using in conjunction with epanet. Does anyone know how to locate this function, possibly within the OWA epanet matlab toolkit github or elsewhere?

Thanks!

Hi @WadeInTheWater,

You can try to download the EPANET MATLAB Toolkit from https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit

List with MATLAB functions: https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit#list-of-matlab-class-functions

Some examples: https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit/tree/dev-2.2-edit/examples

Paper: https://zenodo.org/record/831493#.YQkGoIhLjIU

Playlist video tutorials: https://bit.ly/3rQwlf5

start_toolkit;

% Load a network
d = epanet(‘Net1.inp’);

d.getNodeElevations
d.getLinkDiameter

Regards,
Marios