How to make "Singleton output membership function" ?

5 Ansichten (letzte 30 Tage)
Ratnesh Kumar
Ratnesh Kumar am 30 Apr. 2018
Beantwortet: Sam Chak am 8 Jan. 2022
I want to design a custom membership function, where three spikes are needed in output MF.

Antworten (1)

Sam Chak
Sam Chak am 8 Jan. 2022
You can try something like the following:
t = 0:0.001:1;
iota = [-1 0 1];
plot(iota(1)*ones(size(t)), t, iota(2)*ones(size(t)), t, iota(3)*ones(size(t)), t, 'linewidth', 2)
axis([-1.2, 1.2, 0, 1.2])

Kategorien

Mehr zu Fuzzy Logic Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by