1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
[STAThread]
static void Main(string[] args)
{String result;
try
{
MLApp.MLAppClass matlab = new MLApp.MLAppClass();
System.Array pr = new double[4];
pr.SetValue(11, 0);
pr.SetValue(12, 1);
pr.SetValue(13, 2);
pr.SetValue(14, 3);
System.Array pi = new double[4];
pi.SetValue(1, 0);
pi.SetValue(2, 1);
pi.SetValue(3, 2);
pi.SetValue(4, 3);
matlab.PutFullMatrix("a", "base", pr, pi);
System.Array prresult = new double[4];
System.Array piresult = new double[4];
matlab.GetFullMatrix("a", "base", ref prresult, ref piresult);
}
catch { }
}
}
} |
Partager