This is matlab/octave code for k-medoid, based on algorithm that Park and Jun (2009) proposed . This algorithm more simple than PAM. This is part of code of my thesis about multiple imputation. Enjoy it. Please tell me if you find wrong code. Thank you.