FIRST: Pre-requisites
Install the MATLAB Compiler Runtime 2012a on your computer
Restart the computer
Open the template C# code
Note:
This version of code is tried and worked under 64-bit Windows7 OS.