l_match.m
来自「FISMAT accommodates different arithmetic」· M 代码 · 共 31 行
M
31 行
function match = L_match(Lset,x0)% match = L_match(Lset,x0)%% Matching degree of the crisp value x0 in space X with the fuzzy set% Lset in space X. Lset is defined in terms of alpha-cuts (level sets).% The first column defines the levels. The second and third column define % the alpha cut of the associated level. The fist row corresponds to the% highest level alpha=1.%% The value is checked for its membership in the level sets. The highest% level for which the level set contains x0 is choosen as the matching% degree.% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK% 30-July-1996% Last change 30 July 1996[rows,collumns] = find(x0 <= Lset(:,3) & x0 >= Lset(:,2));if ~isempty(rows), match = Lset(min(rows),1);else, match = 0;end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?