Dear jyoteesh,
Thanks for reporting the issues you faced. Assuming you are running the example as it is, it seems that there is a problem with locating/processing the MEX decoding functions.
What operating system do you have and what is your MATLAB version?
Cheers