How to create a distance matrix using the HC-SR04 sensor?

Its just returning like this.