Support and core of a fuzzy set in matlab

2 次查看(过去 30 天)
Hi,
I'm kind of new to matlab and trying to implement the following concepts in matlab:
- Support --> the support of a fuzzy set is a crisp set that contains elements with degree of membership > 0
- Core --> the core of a fuzzy set is a crisp set that contains elements with degree of membership = 1
Do you know how those two concepts can be implemented in matlab?
Thanks.

回答(1 个)

Sam Chak
Sam Chak 2025-4-11
Crisp sets can be created using linear saturation functions such as linzmf() and linsmf(). Before these two functions were introduced in the R2022a release, the trapezoidal function, trapzmf(), was commonly used.
fis = mamfis;
% Fuzzy Input 1
fis = addInput(fis, [-1 +1], 'Name', 'Input');
fis = addMF(fis, 'Input', 'linzmf', [0 0], 'Name', 'Support');
fis = addMF(fis, 'Input', 'linsmf', [0 0], 'Name', 'Core');
figure(1)
plotmf(fis, 'input', 1, 2001), grid on, ylim([-0.2, 1.2])
title('Crisp sets for Input variable')

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by