![]() |
[求助]关于c#调用matlab的问题
今天我用matlab做了一个dll文件(myTest.dll),程序是:function y=eig(x),然而在用c#调用时出现异常: “myTest.myTestclass”的类型初始值设定项引发异常。而c#的程序如下:
using System; using System.Collections.Generic; using System.Text; using myTest; using MathWorks.MATLAB.NET.Arrays; using MathWorks.MATLAB.NET.Utility; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { double[,] a = new double[2, 2] { { 3, 4 }, { 5, 6 } }; myTest.myTestclass test = new myTestclass(); MWNumericArray x = (MWNumericArray)a; MWArray[] y; y = test.eig(1, x); } } } 恳请各位高手帮小妹分析一下,这厢谢谢了!:lol: |
所有时间均为北京时间。现在的时间是 11:21。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.