Miscellaneous MATLAB functions and scripts created by me