Watch this Author's files
this is a useful function. it is using less memory.
Contact us at files@mathworks.com