FUNCTION REFERENCE
optimplotfval
Plot objective function value vs iteration during optimization.
Plot objective function value vs iteration during optimization.
Syntax
stop = optimplotfval(x, optimValues, state)PlotFcns helper for fzero, fminbnd, and fminsearch.
Example
fminsearch(@(x) (x - 2)^2, 0, optimset('PlotFcns', @optimplotfval));Differences from MATLAB: plots fval vs iteration on the current figure without
custom axis labels.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.