Watch this Author's files
Thanks for sharing this code.
Even i m getting the same error as mentioned by a person previously.
If I changed the last line to ZTerm=Z.*ROI; then it works by the ZTerm becomes zero matrix. It makes the program failure.
kindly help me on this .. it would be a great help.