Dissertation related MATLAB codes.