This set of m-files demonstrates how the Doubly Stochastic Distance Clustering algorithm works in principle. To run the demo, simply start Matlab and run demo.m. The algorithm described in the code is published in: Li He and Hong Zhang, "Doubly Stochastic Distance Clustering", IEEE Transactions on Circuits and Systems for Video Technology, vol. 33, no. 11, pp. 6721-6732, Nov. 2023. hel@sustech.edu.cn