Added useful matlab scripts

In particular X-sim and MV-sim.