Watch this Author's files
Doug,
Fanstastic job on this. The inclusion of indices is a great convenience as well. Thank you for sharing this code and continuing to improve on your work.
Jeremy
Contact us at files@mathworks.com