FUNCTION REFERENCE

optimplotx

Plot current point as a bar chart during optimization.

Plot current point as a bar chart during optimization.

Syntax

stop = optimplotx(x, optimValues, state)

PlotFcns helper for fzero, fminbnd, and fminsearch.

Example

fminsearch(@(x) sum(x.^2), [1 2], optimset('PlotFcns', @optimplotx));

Differences from MATLAB: plots a bar chart of x 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.