get_fit.m
来自「FISMAT accommodates different arithmetic」· M 代码 · 共 23 行
M
23 行
function [fv,slot] = get_fit(xi,X,set)% [fv,slot] = get_fit(xi,X,set)%% Takes a sample of the set at the position xi.% set contains the fit-values and X the universe of discourse.% fv = fitvalue at xi.% slot = slot position of fv.%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 25-Feb-1994[m,n] = size(set);% limiting xi to the range of the universe of discourse:xmin = X(1,1); xmax = X(1,n); dx = xmax-xmin;xi=max(xi,xmin); xi=min(xi,xmax); slot = max(1,round(n*(xi-xmin)/dx));fv = set(1,slot);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?