Added matlab simulation