📄 th_dem_c.m
字号:
function do = th_dem_c(e,x,Ts)% do = th_dem_c(e,x,Ts)%% Temperature control demo with the fuzzy toolbox using the SIMULINK demo% thermo - renamed to th_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%% 24-April-1994 global E ERROR R RATE P MOMENTS AREAS% Fuzzification: (e(1)=error e(2)=rate of changeAe = match(E,e(1),ERROR);Ade = match(R,e(2),RATE);NB=1; NM=2; ZE=3; PM=4; PB=5;% e -> NB ZE PBFAMbank= [ZE PM PB ; % NB | rate of error NM ZE PM ; % NZ v NB NM ZE]; % PBaggop='t2ap'; % algebraic-productA=aggregat(Ae,Ade,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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -