Watch this Author's files
First I would like to thankMark for this great example. But I wish he could replace the protected files with .m files, because unless we see what we use, there is no way to fully utilize it.
P.s. please update to Matlab 2013.
Would have been excellent if it is documented. Without documentation it is unfortunately useless.