wernset.m

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

M
56
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?