tr_dem_c.m

来自「FISMAT accommodates different arithmetic」· M 代码 · 共 49 行

M
49
字号
function do = tr_dem_c(e,x,Ts)% do = tr_dem_c(e,x,Ts)%% Backing up a truck - demo with the fuzzy toolbox.%% The example is taken from the paper S.G.Kong, B.Kosko: 'Adaptive Fuzzy% Systems for Backing up a Truck-and-Trailer', IEEE Transactions on Neural% Networks, Vol.3, No.2, March 1992, pp.211-223%% This controller relates to the fuzdemo4 of the fuzzy-toolbox.% The corresponding Simulink block diagram is tr_dem_s.m% % FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 23-April-1994 global X XPOS P PHI MOMENTS AREAS % Fuzzification: (e(1)=x e(2)=phimx = match(X,e(1),XPOS);mp = match(P,e(2),PHI);NB=1; NM=2; NS=3; ZE=4; PS=5; PM=6; PB=7;% x ->    LE LC CE RC RI     FAMbank= [PS PM PM PB PB  ;  % RB   | phi           NS PS PM PB PB  ;  % RU   v          NM NS PS PM PB  ;  % RV          NM NM ZE PM PM  ;  % VE          NB NM NS PS PM  ;  % LV          NB NB NM NS PS  ;  % LU          NB NB NM NM NS ];  % LBaggop='t3mi';  % minimum operatorA=aggregat(mx,mp,FAMbank,aggop);% A = [a1, a2,...,aj,...,am] with aj=aggop(aj1,aj2,...,aji,...,ajn).% Using the algebraic-product for the inference and a summation of the % outputs. Center Of Gravity method:do = apsumcog(FAMbank,A,MOMENTS,AREAS);% Alternative - Height Method:% do=apsumhei(FAMbank,A,MOMENTS,AREAS);

⌨️ 快捷键说明

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