?? wernset.m
字號:
% WERNSET.M %% Script-File with the fuzzy set definition for the fuzzy controller% file WERN93.M% All sets for using the FUZZIFI() function (matrix set form)%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 12-August 1993 Umin=; % minimum controller outputUmax=; % maximum controller outputkp=; % proportional gainT=; % sample periodTn=; % integral timeTv=; % derivative timeneg=1; null=2; pos=3;% P1...P4 are the characteristical points for a trapezium.% The set for e(k)% P1 P2 P3 P4neg = [-inf ; Umin/kp ; Umin/kp ; 0 ];null= [Umin/kp ; 0 ; 0 ; Umax/kp ];pos = [ 0 ; Umax/kp ; Umax/kp ; inf ];eset=[neg,null,pos];% The set for sum(e(i))% P1 P2 P3 P4neg = [-inf ; Umin*Tn/T ; Umin*Tn/T ; 0 ];null= [Umin*Tn/T ; 0 ; 0 ; Umax*Tn/T ];pos = [ 0 ; Umax*Tn/T ; Umax*Tn/T ; inf ];seset=[neg,null,pos];% The set for e(k)-e(k-1)% P1 P2 P3 P4neg = [-inf ; Umin*Tv/T ; Umin*Tv/T ; 0 ];null= [Umin*Tv/T ; 0 ; 0 ; Umax*Tv/T ];pos = [ 0 ; Umax*Tv/T ; Umax*Tv/T ; inf ];deset=[neg,null,pos];% The set for the controller output u(k)% P1 P2 P3 P4neg = [1.5*Umin ; 1.5*Umin ; Umin/2 ; Umin/2 ];null= [Umin/2 ; Umin/2 ; Umax/2 ; Umax/2 ];pos = [Umax/2 ; Umax/2 ; 1.5*Umax ; 1.5*Umax ];oset=[neg,null,pos];
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -