Following the release of the EPANET-RTX real time extension for the EPANET toolkit, Sam Hatchett posted some Matlab wrappers and scripts for various EPANET applications, including MSX (original code by Jim Uber). This release is another open source project under the Open Water Analytics group on gihub.
From the project description:
This product consists of a set of Matlab wrappers that allow use of the EPANET and EPANET-MSX programmer’s toolkit APIs from within the Matlab environment. The Matlab functions share names with the C-language API functions. Usage of the Matlab functions is similar; the argument lists are identical, with the exception that Matlab separates input and output arguments. User’s of the EPANET or EPANET-MSX APIs with Matlab programming experience should be able to make efficient use of this product.
In addition to the Matlab API wrappers, this product includes a small number of utility routines that, for example, allow for plotting of the network using Matlab graphics.
The following image shows species concentration at nodes and along pipe segments (by Sam Hatchett)