I wrote this matlab code:

function [ n ] = SumTest( a, b )
n = a + b;
end

and deployed with MATLAB Builder NE. That create a class named MatLabTest with a method named SumTest. When I try to create a MatLabTest instance:

MatLabTest mt = new MatLabTest();

I get a TypeInitializationException with the messsage "The type initializer for MatLabTest threw an exception.". Can somebody hepl, thanks in advance.

I'd take a look at this.

**can u tell me how to solve this problem.
my code is in c# and getting same error
**

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.