This program uses Euclidean Distance to compare the similarities. Instead can someone change the code to compute the similarities as one of the following please.
Canberra Distance or City Block Distance
Hi Muhammad Imran,
It won't help in your understanding by explaining line-by-line. Try running the command in Matlab workspace and utilize the plot/imshow etc to display the changes for each step. You will be able to understand how the code work and learn Matlab at the same time. For concepts learning, search related literature.