Intriguing stuff; it's impossible to hear the "tune" when listening to it only with the left or right side of the headphones. I still can't believe it's an illusion, it sounds so real! As someone who has always liked optical illusions I can now add an audio illusion to the mix :) Thanks also for the PDF and references to more reading material.
I think Zhipeng Liang has rather missed the point and those 2 stars should be ignored.
Seems to work well, though remember it may take a few repeats to hear it properly (and, of course, remember to wear headphones!).
Newer versions of Matlab complain about some of the syntax -- which could be tweaked a bit -- but all trivial stuff.
Oh, and it even comes with a handy little pdf on Huggins pitch. Nice.
Very nice packaging including information on both the effect and the implementation. While the effect may be weak (through not fault of the contributors) it clearly demonstrates the concept of binaural processing in the central nervous system. Great for education and study of the auditory system.