flc.m

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

M
32
字号
function sk = flc(ek,x,ts)% sk = flc(ek,x,ts)%% Discrete fuzzy-P-controller.% % ek   = e(k) - current input value at the sample step k.% x(1) = input e(k-1).% x(2) = output s(k-1).% x(3) = e(k-2).% ts   = sampling time.% sk   = output s(k).% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 20-April-1994 global ESET OSETef =fuzzsiyi(ESET,ek(1));rb=ef';% Defuzzification from Siler and Ying. % (Output sets are singletons)sk=OSET*rb;%sk=sk/sum(rb);

⌨️ 快捷键说明

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