Inside the Mathscript node I have the following script:
--------
[xmin, fval] = fminunc('test',[2;2])
--------
and the function test is defined in the file test.m that has the following content:
--------
function f = test(x)
f = x(1)^2 + 2*x(2) - 1
--------
The problem is that the FMINUNC is returning nothing to xmin neither to fval.
Is it a bug or there is a problem with my code?
I tried the sample given in the help and the problem is the same.