Azzera filtri
Azzera filtri

How to create Fuzzy logic code without using fuzzy toolbox

5 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Walter Roberson
Walter Roberson il 1 Lug 2016
Modificato: Walter Roberson il 1 Nov 2016

Più risposte (1)

fadhil mohammad
fadhil mohammad il 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

Categorie

Scopri di più su Fuzzy Logic Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by