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.

Recommended Answers

I'd take a look at this.

Jump to Post

All 2 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.