NMLab: A Co-simulation Framework for Matlab and NS-2

This paper presents NMLab, a proposal of new co-simulation framework for Matlab and ns-2 targeted for networked control systems. NMLab enables to combine flexible and powerful numerical operations together with a realistic support for a wide range of up-to-date communication protocols, and permits simulating networking scenarios of high grade of complexity. At the same time the proposed solution is kept simple. The capabilities of NMLab are illustrated through a series of experiments, using as an example the academic version of the pendulum on a cart.