Simple demonstration of generating a .dll in C# and then calling it within MATLAB.