Say I have a function
[f,g,h] = function (x)
In the file function.m in Matlab. How can I find the value x, e.g. using fminunc, which maximizes g? The fminunc documentation only handles the case when the objective function returns a single value.
function?h, could you show what exactlyfunctiondoes?