Watch this Author's files
Thanks for your sharing.
I think this code is simple but very fast. It was useful to me.
Contact us at files@mathworks.com