Change ValveType with EPANET MATLAB Toolkit (EMT)


@alireza2032, you can use the function d.addBinControl if you want. This function also available in the new version.


@Mariosmsk, when I use the d.addBinControl function, my Matlab has stop working. I trace my code in epanet.m and the error is related to addNewControl function which is marked at attached picture.