Various MALTAB functions that I use in various research projects