Filter löschen
Filter löschen

How to design the membership function in matlab?

2 Ansichten (letzte 30 Tage)
mindo akami
mindo akami am 11 Jun. 2021
Bearbeitet: Alan Stevens am 11 Jun. 2021
Hi,
i did the rule 1 and 2 in matlab with trimf function as you can see (see the attached image)
but for the rule 3 and 4 i don't get any idea how to design them
hope someon can help me with that thanks

Akzeptierte Antwort

Alan Stevens
Alan Stevens am 11 Jun. 2021
Bearbeitet: Alan Stevens am 11 Jun. 2021
How about the following for rule 3 (I'll leave you to invert for rule 4).
x = [-180 -90 -89.001 89.001 90 180];
y = (x+180)/90.*(x<=-90)+(180-x)/90.*(x>=90);
plot(x,y)

Weitere Antworten (0)

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