Filter löschen
Filter löschen

How to create Fuzzy logic code without using fuzzy toolbox

5 Ansichten (letzte 30 Tage)
Hello. I have a problem with fuzzy logic i want to write a code in matlab without using toolbox, my example has two input velocity and distance and i shuold estimate velocity in the next time,membershiP function is triangular,defuzz method is center method. Thanks for helping me about this problem,how should to implement this without using fuzzy toolbox

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 1 Jul. 2016
Bearbeitet: Walter Roberson am 1 Nov. 2016

Weitere Antworten (1)

fadhil mohammad
fadhil mohammad am 1 Nov. 2016
hi . I have a problem with fuzzy logic i want to write a code in matlab without using toolbox, my example has two input energy level and distance ,membershiP function is triangular,trapezoidel, defuzz method is center method (mamdan), output is cost. Thanks for helping me about this problem,how should to implement this without using fuzzy toolbox for more clearance:- Where I need fuzzy logic code in matlab without using
fuzzy logic toolbox
, so, fuzzy logic file based on 2 parameters as input to
fuzzy inference system (energy level, distance) and
everyone have 3 membership function
[energy level:- low . med. High]
[ distance:- close . adequate . far]
And the output be [fuzzy_cost]
And the rule of fuzzy as following:-
1. If (energy level is high)and(distance is close) then (fuzzy_cost is very low)
2. If (energy level is med)and(distance is close) then (fuzzy_cost is low)
3. If (energy level is low)and(distance is close) then (fuzzy_cost is rang low)
4. If (energy level is high)and(distance is adequate) then (fuzzy_cost is med low)
5. If (energy level is med)and(distance is adequate) then (fuzzy_cost is very low)
6. If (energy level is low)and(distance is adequate) then (fuzzy_cost is med high)
7. If (energy level is high)and(distance is far) then (fuzzy_cost is rang high)
8. If (energy level is med)and(distance is far) then (fuzzy_cost is high)
9. If (energy level is low)and(distance is far) then (fuzzy_cost is very high)
thank u. my email :- fadhilmohammad2000@yahoo.com

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by