C#调用matlab dll出现的怪问题-----折腾matlab dll好久了
在matlab中搞了一个非常简单的函数:
function [z]=test(a,b)
z=a*b;
用comtool编译通过,在C#下用如下语句调用:
net_test.net_testClass xx = new net_test.net_testClass();
object m = 3;
object n = 2;
object x = 0;
xx.my_test(1, ref x, m, n);
执行过程中竟出现错误:Function 'mtimes' not defined for variables of class 'int32'