Функция Matlab:
Код: Выделить всё
function myfunc(info);
sort(info)
end
Код: Выделить всё
info = [...
0 0 0; ...
0 120 0; ...
240 120 0; ...
240 0 0; ...
];
Код: Выделить всё
MLApp.MLApp matlab = new MLApp.MLApp();
matlab.Execute(@"cd C:\scripts\myfunc.m");
object result = null;
int[,] input = new int[4, 3] { { 0, 0, 0 }, { 0, 120, 0 }, { 240, 120, 0 }, { 240, 0, 0 } };
matlab.Feval("myfunc", 0, out result, input);
И когда я меняю ввод быть таким
Код: Выделить всё
int[,,] input = new int[4, 1, 3] {
{ {0, 0, 0} },
{ {0, 120, 0} },
{ {240, 120, 0} },
{ {240, 0, 0} }
};
Как это решить?
Подробнее здесь: https://stackoverflow.com/questions/790 ... om-net-app