I was supposed to publish my codes on this webpage earlier, but the work was pushed back from my priority list due to a lot of other work. Tentatively, I am uploading the raw source codes, which are are not well commented or refined. The zip file also includes the 20newsgroup dataset I used. If you execute "test.m", you will be able to see the clustering and classification results on 20newsgroup.
DTM_sources The zip file contains some codes from other webpages. Please be careful to give a proper credit if you use the codes. I will clearly refer to the sources later.