gusucode.com > 模糊控制工具箱 fuzzy logic toolbox源码程序 > fuzzy/fuzzy/tri2mf.m
function y = tri2mf(x,params) %TRI2MF Triangular membership function with two parameters % The parameters are [center delta] where delta is the % distance from the center to either foot. % Copyright 1994-2002 The MathWorks, Inc. % $Revision: 1.7 $ y=trimf(x,[params(1)-params(2) params(1) params(1)+params(2)]);