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

But what does your code look like?