Watch this Author's files
The intent is good, but the code is very messy, which made that, after getting initially bad results, I didn't even try to check where the error came from.
Thanks a lot!
Didn't work for me, and the data was as planar as one could expect it to be...
Contact us at files@mathworks.com