Matlab simulation

Matlab simulation