Watch this Author's files
This is an excellent bit of code. It worked perfectly fine in my case.
Contact us at files@mathworks.com