Error running optimization. Inputs must be a scalar and a square matri
I am trying to use fminunc using optimtool. But i got the error
Error running optimization.
Inputs must be a scalar and a square matrix.
this is the function i typed in the editor.
function F = fun(x)
F =...