This document contains code to simulate various mathematical functions and experiments using MATLAB. It includes code to plot a circle, straight line, calculate distance between points, plot parabolas and hyperbolas. It also includes code for a factorial calculation experiment and using the Monte Carlo method to estimate pi. Finally, it simulates a random walk experiment to model the movement of a drunk person.