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

📄 pi_dat.m

📁 FISMAT accommodates different arithmetic operators, fuzzification and defuzzification algorithm, imp
💻 M
字号:
% pi_dat.m - PI-type Fuzzy Logic Controller with incremental output.%% Script file relationg to pi_dem_s.m and pi_dem_c.m in the fuzzy-toolbox.% This file must invoked before the SIMULINK simulation can run.% The controller and example is described in 'On methods for Improving % Performance of PI-type Fuzzy Logic Controllers', J.Lee, IEEE Trans. on% Fuzzy Systems, Vol.1, No.4, Nov.1993. pp.298-301.%% 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% PI_Demo. PI-type Fuzzy Logic Controller:% Definining the fuzzy-sets:ERROR=modsuset('y',1,7,-0.25,0);RATE=modsuset('y',1,7,-0.25,0);OUTPUT=modsuset('n',1,7,-0.25,0);clf% Press any key after plot...subplot(3,1,1),plot_set(ERROR),title('Error:');subplot(3,1,2),plot_set(RATE),title('Error rate:');subplot(3,1,3),plot_set(OUTPUT),title('Incremental control output');% Converting the (continous) trapecoidal representation to a discrete form:[E,ERROR]=con2dis(ERROR,200);[R,RATE]=con2dis(RATE,200);[O,OUTPUT,MOMENTS,AREAS]=con2dis(OUTPUT,200);% Making the variables needed in the controller there avaible:global E ERROR R RATE MOMENTS AREAS

⌨️ 快捷键说明

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