MATLAB: Epanet Matlab Toolkit Help

epanet matlab toolkit

Hello, I am a Matlab beginner and use Epanet Matlab Toolkit. I run it for 24 hours, 1 hour time step. I expect to get 25 result values (0-24), but I get 26. It seems that some random number (time step) is generated at the time 7.1225 hrs. Could someone advise me please how to change a code to get rid of it? I basically need to get only values which would Epanet generate if I ran the model from Epanet (not from Matlab). Thank you very much! Helena

Best Answer

Sometimes, EPANET will create some additional points, when something important (a hydraulic event) happens into your network. So basically at time 7.1225 a hydraulic event has occurred (e.g. a tank started to empy), and EPANET creates an intermediate measurement, even though you did not ask it to do that.
A simple solution is to always check the time corresponding to each measurement, and reject it if you don't use it.