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
http://stn.spotfire.com/spotfire_client_help/hc/hc_city_block_distance.htm
http://en.wikipedia.org/wiki/Canberra_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.
Comment only