📄 l_match.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -