⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bell_1.m

📁 a collection of M-files to study concepts in the following areas of Fuzzy-Set-Theory: Fuzzy or Multi
💻 M
字号:
function y = bell_1(x, a, b, c)

% BELL_1: Generalized bell-shaped membership function with  three 
%         parameters a, b, c. (Defaults are 1, 1, and 0 respectively).
%         
%                          Y=BELL_1(X, a, b, c)
%
%         Returns a matrix y with the same size as X; each element of 
%         Y is a grade of membership.Y=exp(-((((X -c)/a)^2)^b) );
%
% 	              See also BELL_2, SIGMOID, TRAPEZE and MF_PANEL.



% FISMAT: Fuzzy Inference Systems toolbox for MATLAB
% (c) A. Lotfi, University of Queensland (Email: lotfia@s1.elec.uq.oz.au)
% 13-10-93
% The program has been tested on MATLAB version 4.1, Sun workstation.



if nargin < 4,c=0;end
if nargin < 3,b=1;end
if nargin < 2,a=1;end

y=exp(-((((x -c) ./a) .^2) .^b) );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -