I am going to implement the Epanet toolkit with Matlab 2013, Win8 (also I tried the same with Win 7), and 64 bits in three steps.
First, you have to find what C compiler need your Matlab version, because Windows with 64 bits doesnt has C compiler integrated (32 bits version has integrated c compiler by default ). For instance, I have Matlab R2013a, so I put in google: " c compiler matlab for R2013a Matlab version", and I found this link "http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win64", so I installed Microsoft Visual C++ 2013 Professional.
Second, put "mex -setup" in your matlab console.
Third, select the compiler already instalated.


