How to make "Singleton output membership function" ?

조회 수: 5 (최근 30일)
Ratnesh Kumar
Ratnesh Kumar 2018년 4월 30일
답변: Sam Chak 2022년 1월 8일
I want to design a custom membership function, where three spikes are needed in output MF.

답변 (1개)

Sam Chak
Sam Chak 2022년 1월 8일
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])

카테고리

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