Support and core of a fuzzy set in matlab

2 views (last 30 days)
med-sweng
med-sweng on 31 Jan 2013
Answered: Sam Chak on 11 Apr 2025
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.

Answers (1)

Sam Chak
Sam Chak on 11 Apr 2025
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')

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!