?? fuz_conv.m
字號:
function [setA,setB] = fuz_conv(setA,setB,resx)% [setA,setB] = fuz_conv(setA,setB,resx)%% Converts the fuzzy sets ua and ub given in parameter form% (4*n matrix for generell trapezoid) in a discrete form with% the resolution resx.% Both sets get the same abscissa range.% See also con2dis(). This file is used by some logical operators to use% them with both fuzzy set forms.%% 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 if (setA(1)==-inf), setA(1)=setA(2); end;if (setA(4)==inf), setA(4)=setA(3); end;if (setB(1)==-inf), setB(1)=setB(2); end;if (setB(4)==inf), setB(4)=setB(3); end;xmin=min(setA(1),setB(1)); xmax=max(setA(4),setB(4));alpha=setA(2)-setA(1); beta=setA(4)-setA(3);setA=modlrset('tr','',[xmin,xmax,setA(2),setA(3),alpha,beta,0,1],resx);alpha=setB(2)-setB(1); beta=setB(4)-setB(3);setB=modlrset('tr','',[xmin,xmax,setB(2),setB(3),alpha,beta,0,1],resx);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -