truck_d.m
来自「FISMAT accommodates different arithmetic」· M 代码 · 共 46 行
M
46 行
echo on% Working...echo off% truck_d.m%% This script runs in conjunction with the fuzdemo4 and the model file% tr_dem_s.% 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%% 29-April-1994 %clear all%clear global% Specifying the libraries of fuzzy-sets for the controller variables:XPOS=[-inf 30 45 50 65; 0 40 50 60 90; 10 40 50 60 100; 35 50 55 70 inf];PHI=[-95 -5 45 80 95 115 175 ;-45 30 65 90 115 150 225;...-45 30 65 90 115 150 225; 5 65 85 100 135 185 275];THETA=[-45 -25 -10 -5 0 5 15;-30 -15 -5 0 5 15 30 ;...-30 -15 -5 0 5 15 30 ;-15 -5 0 5 10 25 45];% Converting the compact-form into discrete sets. X-resolution 0.1 m,% phi and theta 1 degree:[X,XPOS]=con2dis(XPOS,1000);[P,PHI]=con2dis(PHI,360);[T,THETA,MOMENTS,AREAS]=con2dis(THETA,60);global X XPOS P PHI MOMENTS AREAS% Specifying initial values for (x,y) and phi in the truck and loading% deck simulation:IXPOS=30; IYPOS=10; IPHI=220; MOVDIS=1; Ts=1;global IXPOS IYPOS IPHI MOVDIS Tsecho on
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?