set_fit.m
来自「FISMAT accommodates different arithmetic」· M 代码 · 共 26 行
M
26 行
function fr = set_fit(xi,fv,x,set)% fr=set_fit(xi,fv,x,set)%% sets the fit value fv of the set at the slot of universe of discourse x% corresponding to the abscissa value xi.%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 25-Feb-1994fr = set; [m,n] = size(set);xmin = x(1); xmax = x(n); dx = xmax-xmin;slot = round(n*(xi-xmin)/dx);if (xi<=xmin)|(slot<=0), fr(1,1) = fv;elseif (xi>=xmax)|(slot>n), fr(n)=fv; else fr(1,slot) = fv;end;slot
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?