Matlab code for multivariate statistical analysis of geo-scientific datasets