Hi Sharad,
I think the following link would help you create and pass matrices to methods in a MATLAB generated DLL:
Specifically, see Step 7 in the above link which says:
The following is a code in C# that declares two matrices and passes them to a MATLAB function for adding.
int[,] a ={ { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; //Matrix 1
int[,] b ={ { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; //Matrix 2
MWNumericArray arr1 = a;
MWNumericArray arr2 = b;
MyMatClass obj = new MyMatClass();
MWArray result = obj.addMatrices((MWArray)arr1, (MWArray)arr2);
You can also refer to the example 'Matrix Math' in the MATLAB documentation. Assuming you are using MATLAB R2014a, the documentation is here
Refer to the 'Matrix Math' section -> Procedure -> Step 5 -> The code 'MatrixMathApp.cs' under the line 'The program listing is shown here.'