Matlab functions and code for analyzing various paleoclimate data