Mistake in Linear z-shaped membership funciton

10 次查看(过去 30 天)
There is a mistake in the description of Linear z-shaped membership function.
it should be:
(b-x)/(b-a) for a<=x<=b
otherwise you've got for a^- -> 1, for a^+ -> 0
  1 个评论
Sahas
Sahas 2024-8-30
编辑:Sahas 2024-8-30
I downloaded the pre-release version of MATLAB R2024b and checked the documentation. It appears that MathWorks has already resolved this issue.

请先登录,再进行评论。

回答(1 个)

Sam Chak
Sam Chak 2024-8-30
You can navigate to "Contact Support" and, under "Product Usage," submit a suggestion to correct the information. The document writer was likely considering the mathematical aspects when preparing the documentation, which may have led to confusion with the correct piecewise equation.
x = linspace(-1, 1, 2001);
a = x(1);
b = x(end);
y = max(-1, min(1, -3*x)); % ideal saturation function with negative slope
mf = (a - y)./(a - b); % membership function
tl = tiledlayout(2, 1, 'TileSpacing', 'Compact');
nexttile
plot(x, y), grid on, ylabel('y'), ylim([-1.4, 1.4])
yline(0, 'r-.')
title('ideal saturation function with negative slope')
nexttile
plot(x, mf), grid on, ylabel('\mu'), ylim([-0.2, 1.2])
yline(0, 'r-.')
xlabel(tl, 'x')
title('NEG fuzzy set of ideal saturation function')

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by