⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isoperator.m

📁 The Source of Genetic Programming developed in Matlab
💻 M
字号:
function isit=isoperator(operatornames,possibleoperator)
%ISOPERATOR    True for GPLAB algorithm operator.
%   ISOPERATOR(OPERATORNAMES,POSSIBLEOPERATOR) returns the operator
%   number 1,2... (true) if POSSIBLEOPERATOR is in OPERATORNAMES,
%   or 0 (false) otherwise.
%
%   Input arguments:
%      OPERATORNAMES - an array with names of operators (cell array)
%      POSSIBLEOPERATOR - the name of a possible operator (string)
%   Output argument:
%      the number of the operator, or false (integer)
%
%   Copyright (C) 2003-2007 Sara Silva (sara@dei.uc.pt)
%   This file is part of the GPLAB Toolbox


isit=find(strcmp(operatornames,possibleoperator));

if isempty(isit)
   isit=0;
end


⌨️ 快捷键说明

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