MATLAB-based Adaptive Optics simulation