Various Simulation Techniques and Problems implemented in Matlab