首页 > 代码库 > C#与matlab参数调用(输出参数为两个不同类型的数组)

C#与matlab参数调用(输出参数为两个不同类型的数组)

int L1 = 150;
Class1 Coverage = new Coveragefunction2.Class1();
MWArray[] array = null;
array = Coverage.Coveragefunction2(2, W1, L1);//(n,input1,input2,...inputm)输出n个矩阵,输入为m个矩阵
MWNumericArray a1 = null;
MWNumericArray a2 = null;
a1 = (MWNumericArray)array[0];
a2 = (MWNumericArray)array[1];
string a3 = Convert.ToString(a2);
double a4 = Convert.ToDouble(a3);
double a5 = Math.Round(a4, 4);
this.TextBox17.Text = a5.ToString();

C#与matlab参数调用(输出参数为两个不同类型的数组)