Few simple Matlab codes are given below. I hope that someone somewhere might get benefited from these.
1. Subset simulation and Monte Carlo simulation
2. Girsanov transformation and Monte Carlo simulation
3. Mixture Model
4. Discretization