%% Nondefault Options
% Plot the solution process by setting some plot functions.
% Define the function and initial point.

fun = @(x)sin(cosh(x));
x0 = 1;

%
% Examine the solution process by setting options that include plot functions.

options = optimset('PlotFcns',{@optimplotx,@optimplotfval});

%
% Run fzero including options.

x = fzero(fun,x0,options)

% Copyright 2015 The MathWorks, Inc.