picurve.m

来自「为了下载东西」· M 代码 · 共 27 行

M
27 行
字号
function z = picurve(x1,x2,x3,x4,x,typ)
% Fuzzy PI curve
%
% function z = picurve(x1,x2,x3,x4,x,typ)
%
% x1	leftmost break point
% x2	left shoulder
% x3	right shoulder
% x4	rightmost break point
% x	running point on universe
% typ	curve type, 0 = non-linear (cosine), 1 = linear
%
% The PI curve is composed of an s-curve and a z-curve.
% This function can produce several types of sets:
%
% bump		with x3 = x2 and typ = 0
% flat bump	with x3 > x2 and typ = 0
% triangle	with x3 = x2 and typ = 1
% trapezoid	with x3 > x2 and typ = 1
% rectangle	with x2 = x1, x3 > x2, x4 = x3 and typ = 1
% singleton	with x1 = x2 = x3 = x4 and typ = 1

% Jan Jantzen 94-01-31

 z = min(scurve(x1,x2,x,typ),zcurve(x3,x4,x,typ)) ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?