📄 flsset.m
字号:
function z = flsset(Spread, Slope, Centre, X)
% Basic equation for FL Smidth's fuzzy sets
%
% function z = flsset(Spread, Slope, Centre, X)
%
% Spread Controls width
% Slope Controls slope
% Centre Controls position
% X Input data
%
% Vector input produces vector output.
% Jantzen 940412
% Lines 1, 2 and 4 avoid division by 0 and
% at the same time allows vector input (a hack)
DivBy0 = X == Centre ;
X = X + (DivBy0*0.1) ;
z = 1 - exp(-(Spread ./ abs(Centre - X)).^Slope) ;
z = (z .* (~DivBy0)) + DivBy0 ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -