pen_dat.m

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

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