rameters, pairs of parameters
% and values may be passed as well. In this case, all parameters not
% specified as input use their default values. Below is an example of
% specifying a parameter in this way.
ncg(@(x) example1(x,3), pi/4,'Display','final');
%%
% *Case 3: Passing input parameters as fields in a structure.*
%
% Input parameters can be passed as fields in a structure. Note, though,
% that since each optimization method uses method specific parameters, it
% is suggested to start from a structure 