I have a simple function about neural network. This function gets a matrix, loads mat file and runs a neural network function with this parameter. In matlab conssole this is working perfectly. But in C# gives error;
... MWMCR::EvaluateFunction error ...
Subscript indices must either be real positive integers or logicals.
Error in => neural.m at line 4.
... Matlab M-code Stack Trace ...
at file c:\xxxxxxxxxxxx\NeuralClass\neural.m, name neural, line 4.
This is my simple function;
function result=neural(x1)
load('fonksiyon.mat', 'net')
x1=x1';
result= net(x1);