Matlab 2 histogram. %Create a vector of distances Distance = sqrt(X.