First of all, Thank you for the code. It seems the signs of your coefficients are opposite of what Matlab outputs. The inverse MODWT function gives the original signal though. I am not sure if it matters though, just wanted to bring to your attention.