MATLAB: Find Euclidean distance of next two vectors in an iteration

euclidean distanceimage vectors

Hi, I want to read image from the dataset and find Euclidean distance of two next images in a loop.
Eg: v1, v2, ….. , vn are the vectors of the images in the dataset. Then d1 should give the Euclidean distance between v1 and v1, d2 should give distance between v2 and v3 and so on. Please provide me a solution for this

Best Answer

help pdist
Related Question