📄 pen_dat.m
字号:
echo off% pen_dat.m%% This script runs in conjunction with the SIMULINK model file penfuz_s.m% % This script prepares fuzzy-sets, parameters of the fuzzy-controller and% initial conditions for the simulation.% The controller files: pen_ang.m and pen_pos.m%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 25-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]; OUTPUT = [-2 -0.5 0; -1 0 1;-1 0 1;0 0.5 2]; % Converting the (continous) trapecoidal representation to a discrete form:[E,ERROR]=con2dis(ERROR,100);[R,RATE]=con2dis(RATE,100);[O,OUTPUT,MOMENTS,AREAS]=con2dis(OUTPUT,100);global E ERROR R RATE MOMENTS AREAS% Fuzzy-controller realized as a look-up-table:% [error,rate,output]=ctr_surf('th_dem_c',0.04,[-1 1 -1 1],30);% global error rate output
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -