LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use FMINUNC in the MathScript - LabView 8?

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.
0 Kudos
Message 1 of 1
(2,104 Views)