isfis.m

来自「模糊控制工具箱,很好用的,有相应的说明文件,希望对大家有用!」· M 代码 · 共 21 行

M
21
字号
function tf = isfis(fis)
%ISFIS  Returns 1 (true) for FIS structures, 0 otherwise.

%   Author:  P. Gahinet
%   Revised: N. Hickey
%   Copyright 1994-2002 The MathWorks, Inc. 
%   $Revision: 1.7 $  $Date: 2002/04/14 22:20:11 $

if isa(fis,'struct') & all(ismember(...
        {'name'
        'type'
        'andMethod'
        'orMethod'
        'defuzzMethod'
        'impMethod'
        'aggMethod'
        'rule'},fieldnames(fis)))
    tf = 1;
else
    tf = 0;
end

⌨️ 快捷键说明

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