欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

th_dat.m

FISMAT accommodates different arithmetic operators, fuzzification and defuzzification algorithm, imp
M
字号:
echo off% th_dat.m%% This script runs in conjunction with the SIMULINK model file th_dem_s.m% % This script prepares fuzzy-sets, parameters of the fuzzy-controller and% initial conditions for the simulation.%% 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 clear allclear globalERROR = [-inf -0.5 0;-1 0 1;-1 0 1;0 0.5 inf];   RATE  = [-inf -0.5 0;-1 0 1;-1 0 1;0 0.5 inf];    POWER = [-0.25 0 0.25 0.5 0.75;0 0.25 0.5 0.75 1;0 0.25 0.5 0.75 1;...0.25 0.5 0.75 1 1.25]; % Converting the (continous) trapecoidal representation to a discrete form:[E,ERROR]=con2dis(ERROR,100);[R,RATE]=con2dis(RATE,100);[P,POWER,MOMENTS,AREAS]=con2dis(POWER,100);global E ERROR R RATE MOMENTS AREAS% Fuzzy-controller realized as a look-up-table:[error,rate,power]=ctr_surf('th_dem_c',0.5,[-1 1 -1 1],30);global error rate power

⌨️ 快捷键说明

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