www.gusucode.com > optim 案例源码 matlab代码程序 > optim/UseDotNotationtoUpdateOptionsExample.m

    %% Use Dot Notation to Update Options  
% Update existing options with new values by using dot notation.   

%% 
% Create options for the |lsqnonlin| solver. 
options = optimoptions(@lsqnonlin,'Algorithm','levenberg-marquardt',...
    'MaxFunctionEvaluations',1500)     

%% 
% Increase |MaxFunctionEvaluations| to 2000 by using dot notation. 
options.MaxFunctionEvaluations = 2000