C# matlab dll usage on Visual Studio 2011 You can see an article about how to build .net assembly on MATLAB. Here we involve two matlab types, MWArray and MWNumericArray. Suppose matlab ne project name : projname class name : classname function name : func,with an argument : 2D matrix and output also is 2D