An explanation of the functions I have written in Matlab

Distance between two points. The function F(a,b) takes two vectors representing coordinates and calculates the difference between them. This is done by finding the vector ab=(b-a) and multiplying it by its transpose. The code is given below: function out = … ................
................