get_msd.m
来自「FISMAT accommodates different arithmetic」· M 代码 · 共 28 行
M
28 行
function msd = get_msd(U,msf,u)% msd = get_msd(U,msf,u)%% Determines the degree of membership msd of the value u in the universe% of discourse U. U and the membership function msf are given as finite% vectors.% If the value u is smaller than the smallest value in U, msd is set to% be equal to the msf of the first value in U.% If the value u is greater than the largest value in U, msd is set to% be equal to the msf of the last value in U.% If U(1) <= u <= U(length(U)) the msf is interpolated.%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 29 Jan 1996if u < U(1), msd = msf(1);elseif u > U(length(U)), msd = msf(length(U));else msd = interp1(U,msf,u);end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?