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

If you are sending values to a PC application, you can send raw integer distance readings and do the math at the PC application end if you like.