我需要在C#中调用matlab的程序,我这么做的:
      首先,在matlab中把我的程序变成。NET组件,再把。dll文件加入到reference中
       这样可以调用matlab的函数,并且可以传输一个计算结果,我现在至少需要传输两个数据,请教大虾们指点

解决方案 »

  1.   

               test1.test1Class t1 = new test1.test1Class();         
               double   a = 3f, b = 2f;
               object m = a, n = b;
               t1.test(m, n);//test(x,y)为m 函数
      

  2.   

               test1.test1Class t1 = new test1.test1Class();         
               double   a = 3f, b = 2f;
               object m = a, n = b;
               t1.test(m, n);//test(x,y)为m 函数