Matlab function on density analysis of check-in distribution