资 源 简 介
%-- 2013/10/16 16:57 --%
clc
close all;
clear all;
tc=newfis("tc","sugeno");
tc=addvar(tc,"input","theta",[-90 90]);
tc=addmf(tc,"input",1,"about 0","trimf",[-90 0 90]);
tc=addmf(tc,"input",1,"about 90","trimf",[0 90 90]);
tc=addmf(tc,"input",1,"about-90","trimf",[-90 -90 0]);
tc=addvar(tc,"input","omega",[-5 5]);
tc=addmf(tc,"input",2,"NG","gaussmf",[1.8 -5]);
tc=addmf(tc,"input",2,"ZR","gaussmf",[1.8 0]);
tc=addmf(tc,"input",2,"PO","gaussmf",[1.8 5]);
tc=addvar(tc,"output","u",[-2 2]);
tc=addmf(tc,"output",1,"No.1","linear",[126.07 26.3 0]);
tc=addmf(tc,"output",1,"No.2","linear",[2722.3 883.4 0]);
rulelist=[1 0 1 1 1;2 0 2 1 1;3 0 2 1 1];
tc=addrule(tc,rulelist);
model=newfis("model","sugeno");
model=addvar(model,"input","theta",[-90 90]);
model=addmf(model,"input",1,"about 0","trimf",[-90 0 90]);
model=addmf(model,"input",1,"about 90","t