gaoutputoptions.m

来自「遗传算法工具包」· M 代码 · 共 19 行

M
19
字号
function [state, optnew,optchanged] = gaoutputoptions(options,state,flag)
%GAOUTPUTOPTIONS Display non default options settings.
%   STATE = GAOUTPUTOPTIONS(OPTIONS,STATE,FLAG) is used as a output
%   function for displaying which options parameters are not default.
%
%   Example:
%    Create an options structure that uses GAOUTPUTOPTIONS
%    as the output function
%     options = gaoptimset('outputfcns', @gaoutputoptions)

%   Copyright 2004 The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 2004/01/16 16:51:49 $
 
% use the code generation tool to get the text to display
optnew = options;
optchanged = false;
if(strcmp(flag,'init'))
    code = generateCode(options)
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?